3 ms·
> of floating point error. Worth noting that this is a risk whenever there is rounding, if this chain of logic happens with cents as ints, it is still wrong:
by DougBTX 4y ago
> of floating point error.
Worth noting that this is a risk whenever there is rounding, if this chain of logic happens with cents as ints, it is still wrong:
1 / 2 => 0
0 * 2 => 0
Therefore:
1 == 0