in reply to [solved] rounding variations after multiplication and division
For financial calculations, you'll want to avoid floating point. Instead, use fixed point arithmetic. I generally just use integers and then stuff in the decimal point in the output routines (when I'm displaying 'em--for file I/O, I don't insert the decimal point).
...roboticus
|
|---|