View Single Post
  #9   Spotlight this post!  
Unread 07-02-2004, 20:11
josh_johnson josh_johnson is offline
Registered User
#1020 (Indiana Prankmonkeys)
 
Join Date: Nov 2002
Location: Muncie, IN
Posts: 58
josh_johnson is an unknown quantity at this point
Send a message via AIM to josh_johnson Send a message via Yahoo to josh_johnson
Re: Compiler Help Needed

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.
__________________
5! * (4! - 3! - 1!) / 2!