Don't use floating point math. Start with integers. Never overflow, never divide, and everything will be fine.
You might be interested in What Every Computer Scientist Should Know About Floating-Point Arithmetic.
In reply to Re: Floating Point Errors
by kyle
in thread Floating Point Errors
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |