0.41==0.4+1*0.01 is False but 0.31==0.3+1*0.01 is True??
Show older comments
Hi all, My friend encountered this interesting question in matlab. In command windows, compute 0.41==0.4+1*0.01, ans=0 compute 0.31==0.3+1*0.01, ans=1 compute 0.51==0.5+1*0.01, ans=1 ... Does anyone know the reason? Thank you very much
Answers (2)
Wayne King
on 9 Dec 2011
0 votes
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!