DarkNecromancer Posted December 14, 2005 Share Posted December 14, 2005 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 Link to comment Share on other sites More sharing options...
Sokko Posted December 14, 2005 Share Posted December 14, 2005 (edited) 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 December 14, 2005 by Sokko Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now