subtract very small value

4 ビュー (過去 30 日間)
Maro
Maro 2015 年 5 月 22 日
回答済み: Star Strider 2015 年 5 月 22 日
when I subtract a very value small from another value. the answer remain the same as if I did not subtract any value for example if I subtract 1.9512e-005 from 1.5 the answer is 1.5 ...how do I enforce the matlab to output the correct answer?

採用された回答

Star Strider
Star Strider 2015 年 5 月 22 日
Use the format function. You may want to use format longE.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by