Quote:
|
Originally Posted by Jeff McCune
Basically, stick to integer math, and multiply to the biggest number you can before starting to divide using integers to prevent always multoplying by zero.
|
This can be a dangerous aproach, as often the largest value is too large for the variable type that you are putting it in, but the final result would fit just fine. Just make sure that any intermediate values are not going to be too large before doing this.