So to get exact results, do all your calculations in integers, and divide by 100 for display purposes.
Or, more transparently: use bignum - for example:
perl -Mbignum -e "print (100.10-100);"gives the correct answer 0.1
In reply to Re^2: Math 101 anyone?
by muntfish
in thread Math 101 anyone?
by smcone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |