MATLAB: 0.9-0.89 is 0.01000000​0000000000​2081668171​17217

faqif statement

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

Best Answer

Related Question