0
Why we cannot calculate 0.1 in any programming language by wah maths.
In any language if we try to calculate 0.1 or something more precise, it can't calculate by simple arthematic signs. Instead of 0.1 it shows 0.1000000000009 or something else.
2 Answers
+ 4
Problem is the way floating point numbers are stored.
Some similar threads that could be useful.
https://www.sololearn.com/discuss/1424039/?ref=app
https://www.sololearn.com/discuss/711763/?ref=app
https://www.sololearn.com/discuss/2149084/?ref=app
https://www.sololearn.com/discuss/1477626/?ref=app
https://www.sololearn.com/discuss/1288636/?ref=app
https://www.sololearn.com/discuss/72830/?ref=app