in reply to [solved] rounding variations after multiplication and division

DutchCoder:

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
  • Comment on Re: [solved] rounding variations after multiplication and division