3 ms·
In both of those cases the problem is not problem with floating point arithmetic but the parsing of floating point literals, or rather how systems take input an
by zokier 3y ago
In both of those cases the problem is not problem with floating point arithmetic but the parsing of floating point literals, or rather how systems take input and then substitute it with something different quietly behind the scenes. None of 0.1, 0.2, 0.3 are true (binary) fp values. Nobody would be surprised that
0.1000000000000000056 + 0.2000000000000000111 != 0.2999999999999999889
- dgudkov 3y agoYou won't believe it, but Excel users are actually surprised. As do users of many other applications.