4 ms·
It would lead to some hilarious malpractise if anyone understood floating point and stole a billion cents. Things like this has happend and will continue if peo
by Out_of_Characte 4y ago
It would lead to some hilarious malpractise if anyone understood floating point and stole a billion cents. Things like this has happend and will continue if people arent aware of floating point error.
- 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