Why 0.6+0.3+0.1-1 is -1.11022302462516e-16, not 0 ? why?? A serials bug??

3 次查看(过去 30 天)
0.6+0.3+0.1-1
  1 个评论
denny
denny 2019-9-9
This is not a bug, this is bucase the numeric calculation in a computer.
You can use a fraction to calculate it.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 快速入门 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!