4 ms·
have you ever tried working computationally with money? Forget money, have you worked with floating points? There really isn't anything certain.
by random3 1y ago
have you ever tried working computationally with money? Forget money, have you worked with floating points? There really isn't anything certain.
- nine_k 1y agoYes, I worked in a billing department. No, floats are emphatically not suitable for representing money, except the very rounded values in presentations. Floats try to keep the relative error at bay, so their absolute precision varies greatly. You need to sum them starting with the smallest magnitude, and do many other subtle tricks, to limit rounding errors.