Why 0.1+0.2 !== 0.3 in JavaScript?
Not just that, but why is 0.1*0.1 = 0.010000000000000002 and not 0.01? Why is 1.1-1.0 = 0.10000000000000009 and not 0.1?
Apr 9, 20233 min read653

Search for a command to run...
Articles tagged with #floating-point-arithmetic