MATLAB Answers

0.9-0.89 is 0.01000000​0000000000​2081668171​17217

1 view (last 30 days)
john
john on 15 Aug 2013
Hi, why
0.9-0.89 is 0.010000000000000000208166817117217?
I want to use it in:
if a-b<c sprintf('error') end......
when I use vpa, than I get error in if..
thank you

Accepted Answer

Image Analyst
Image Analyst on 15 Aug 2013
  2 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!