4 ms·
0.1 plus 0.2 not equal 0.3
Open chrome dev tools, write:
0.1 + 0.2
Explain the result in as much detail as you can, and may the best woman/man win, go :)
- forbiddenlake 3y agoThis is normal for floats, because computers can't represent all possible numbers accurately. https://stackoverflow.com/questions/588004/is-floating-point-math-broken https://stackoverflow.com/questions/588004/is-floating-point...
- anthk 3y agoIt's equal in Scheme. You need to use rationals. Also, under 'Unix Calc': (0.1 + 0.2) - 0.3 yields 0.
- philomath_mn 3y agoJust read this: https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.h...
- deleted 3y ago[deleted]