Don't hate me :P. I have searched for ever and then give up and forget about it. I was just wondering what "mod" is used for? What does it do and mean?
Don't hate me :P. I have searched for ever and then give up and forget about it. I was just wondering what "mod" is used for? What does it do and mean?

I might be totally wrong but :
M.O.D = Merchants Of Death
mod = modify (abridged)...
Can you specify where you found it ?
The modulus operator gives you the remainder of one number divided by another.
:-)
so your saying its just used to devide a number by another number?
It does exactly what I said: it returns the remainder of one number divided by another.
:-)
Here's an example:
SCAR Code:Program New;
Begin
WriteLN(IntToSTr(12 Mod 10));
End.
Returns 2.
~Sandstorm
eg 5 mod 2=1
ok, thanks, i get it now :P i appreciate all the help.

12 mod 13 = 12?

how though? (12 mod 13)
I woulda thought it would return -1. :/.
~Sandstorm

oh yeah.. forgot about the remainder..
thanks ^^
There are currently 1 users browsing this thread. (0 members and 1 guests)