Jump to content
Sign in to follow this  
DarkNecromancer

MOD? WAA?

Recommended Posts

DarkNecromancer

Hi, I can't figure out what MOD is doing. From what i understand if i have the mod statement mod(2,4) then it should return .5 or 5, but when i do it it returns 2. ????? wa??? Can anyone enlighten me?

~Dark

Share this post


Link to post
Share on other sites
Sokko

2\4 is 0 with 2 left over. Where's the problem? In case you didn't understand the help files on this point, mod(X,Y) will integer-divide X by Y and return the remainder (if X and Y are both integers).

Edited by Sokko

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×