0.1+0.2-0.3=?

3 views (last 30 days)
Jon
Jon on 7 Jul 2011
Hello,
Apologies if I'm doing something stupid, but could someone please explain why 0.1+0.2-0.3 apparently equals 5.5511e-017?
If this is confirmed, I find it quite worrying, so are there other such "features" that may be quietly affecting my results without me being aware of them?
Many thanks, Jon.

Accepted Answer

Sean de Wolski
Sean de Wolski on 7 Jul 2011
stupid, no; common, yes.
In fact this is the most frequently asked question on here and CSSM.
  2 Comments
Jon
Jon on 7 Jul 2011
Many thanks, I missed previous mentions of this. Glad it's not just me!
Sean de Wolski
Sean de Wolski on 7 Jul 2011
You're welcome; welcome to MATLAB Answers!

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!