That sounds like an accident waiting to happen
Comment on IEEE 754
zqwzzle@lemmy.ca 4 weeks agoYeah I shudder when I see floats and currency.
SubArcticTundra@lemmy.ml 4 weeks ago
Comment on IEEE 754
zqwzzle@lemmy.ca 4 weeks agoYeah I shudder when I see floats and currency.
That sounds like an accident waiting to happen
Womble@lemmy.world 4 weeks ago
Eh, if you use doubles and you add 0.000314 (just over 0.03 cents) to ten billion dollars you have an error of 1/1000 of a cent, and thats a deliberately perverse transaction. Its not ideal but its not the waiting disaster that using single precision is.