Thread: % and timevar
View Single Post
  #13  
Old 02-23-2003, 10:04 PM
Falados Falados is offline
Cucumber NPC
Falados's Avatar
Join Date: Jan 2003
Posts: 141
Falados is on a distinguished road
Send a message via ICQ to Falados Send a message via AIM to Falados
The point is, WHY would you create a floating point if your answer will never need it. Integer mathmatics takes less processor time that floating point.

I mean all the computer has to do is see if an integer is greater then a certain number and then if it is, set it to zero. but the MOD has to do

a-int(a/b)*b to do the same operation. Shorter in the code, but more complex than it needs to be.
__________________

subliminal message: 1+1=3
Reply With Quote