3 ms·
I'm pretty sure that 1.0 + 2.0 == 3.0 in IEEE 754. :) Now, 0.1 ...
by dmd 7y ago
I'm pretty sure that 1.0 + 2.0 == 3.0 in IEEE 754. :)
Now, 0.1 ...
- ethbro 7y agoFor reference to what they're talking about, the helpful https://0.30000000000000004.com/ https://0.30000000000000004.com/
- rrss 7y agoYep, sorry, meant to put 0.1 ... Thanks!
- mark-r 7y agoOne of the great qualities of IEEE 754 is its ability to represent many integers and operate on them without rounding errors.
- piadodjanho 7y agoThey are not the same thing, but they are close enough most of the time. The issue with floating point arrises when comparing very close numbers.
- dmd 7y agowhooosh