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).
...roboticusIn reply to Re: [solved] rounding variations after multiplication and division
by roboticus
in thread [solved] rounding variations after multiplication and division
by DutchCoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |