primary school question!

well, a silly question
why 0.07*400 is not equal to 28?
see screenshot;

回答 (1 件)

Image Analyst
Image Analyst 2020 年 11 月 28 日

0 投票

Truncation error due to double's only using 64 bits instead of an infinite number of bits. It will be off a very small amount, eps(28). See the FAQ for a thorough discussion:

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2020a

質問済み:

2020 年 11 月 28 日

回答済み:

2020 年 11 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by