Determine function as output

How can i determine if the output is a fraction, it will return true, or else its a false. Are there any specific function?

1 件のコメント

John D'Errico
John D'Errico 2018 年 5 月 19 日
You want to determine if a number is a fraction? EVERY floating point number is SOME fraction. For example, 0.12345235567452?
At the very least, it is
12345235567452/100000000000000
At best, read the help for the function rat.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDiscrete Math についてさらに検索

タグ

質問済み:

2018 年 5 月 19 日

コメント済み:

2018 年 5 月 19 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by