
02-23-2003, 10:04 PM
|
|
Cucumber NPC
|
 |
Join Date: Jan 2003
Posts: 141
|
|
|
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
|
|
|
|