primary school question!

15 次查看(过去 30 天)
Wenjuan
Wenjuan 2020-11-28
well, a silly question
why 0.07*400 is not equal to 28?
see screenshot;

回答(1 个)

Image Analyst
Image Analyst 2020-11-28
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:

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by