T
The_Prophet
Guest
is there a function that returns a boolean stating if an integer is even/odd?
not sure you can try to list ever inderger to 100
Int=Your Origional
IntTemp=New
RealTemp=New
Set IntTemp = (Int / 2)
Set RealTemp = (Real((Int / 2)))
If (RealTemp Equal to (Real(IntTemp))) then do (-------- Even --------) else do (-------- Odd --------)
daadslfk said:its if integer Modulus Division (Mod) = 0 then
its even theres no such thing as modulo.
ok i dont understand thatphyrex1an said:Integer Comparission
Math - Modulo
If Modulo(wichinteger, 2) = 0 then it is even.
thankzRad said:Bringing up the past again![]()
Modulo is like division but instead of how many times X goes into Y its the remainder X and Y. 2 mod 5 is 1, 2/5 is 4
ok thxRad said:Good point, next time just ask me![]()
when will this so called "mod" be done?Persen said:I think i will add this to my mod... thanks for the idea.