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

3 views (last 30 days)
0.6+0.3+0.1-1
  1 Comment
denny
denny on 9 Sep 2019
This is not a bug, this is bucase the numeric calculation in a computer.
You can use a fraction to calculate it.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB 快速入门 in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!