have you ever tried working computationally with money? Forget money, have you worked with floating points? There really isn't anything certain.
have you ever tried working computationally with money? Forget money, have you worked with floating points? There really isn't anything certain.
Yes, 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.