...but when money is involved it needs to be 100% correct
If you store your currency as whole numbers of pennies/cents etc, then you will never get roundoffs and have total accuracy upto $/£/? 9 trillion (see machine accuracy).
For a simple explanation of why floating point doesn't give exact results, see Re: Re: Re: Bug? 1+1 != 2.
In reply to Re: Math 101 anyone?
by BrowserUk
in thread Math 101 anyone?
by smcone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |