suttercain Posted March 13, 2007 Share Posted March 13, 2007 I understand that the modulus is the remainder of a division. EXP. 33 % 5 = 3. My question is: Does 5 % 33 = 0? Since it has no remainder am I correct? Thanks in advance for the help. Shannon Link to comment https://forums.phpfreaks.com/topic/42540-solved-modulus-question/ Share on other sites More sharing options...
Vikas Jayna Posted March 13, 2007 Share Posted March 13, 2007 5 % 33 gives 5 as the quotient come out to be zero Link to comment https://forums.phpfreaks.com/topic/42540-solved-modulus-question/#findComment-206384 Share on other sites More sharing options...
obsidian Posted March 13, 2007 Share Posted March 13, 2007 5 % 33 gives 5 as the quotient come out to be zero Exactly. Remember that you stated the modulus operator returns the remainder of the division. Well [pre]5 / 33 == 0 r.5[/pre], so "5" is returned. Link to comment https://forums.phpfreaks.com/topic/42540-solved-modulus-question/#findComment-206387 Share on other sites More sharing options...
mjlogan Posted March 13, 2007 Share Posted March 13, 2007 I understand that the modulus is the remainder of a division. EXP. 33 % 5 = 3. My question is: Does 5 % 33 = 0? Since it has no remainder am I correct? Thanks in advance for the help. Shannon 5 modulo 33 = 5 Link to comment https://forums.phpfreaks.com/topic/42540-solved-modulus-question/#findComment-206392 Share on other sites More sharing options...
suttercain Posted March 13, 2007 Author Share Posted March 13, 2007 Alright guys, thanks. I apologize though. I am really.... really bad in math and I don't see how you got a remainder of 5. Can someone explain briefly, if possible? Thanks. EDIT: Okay I think I may have it... So 5 % 33 = 5 6 % 33 = 6 32 % 33 = 32 33 % 33 = 0 34 % 33 = 1 Am I correct? Link to comment https://forums.phpfreaks.com/topic/42540-solved-modulus-question/#findComment-206408 Share on other sites More sharing options...
obsidian Posted March 13, 2007 Share Posted March 13, 2007 Okay I think I may have it... So 5 % 33 = 5 6 % 33 = 6 32 % 33 = 32 33 % 33 = 0 34 % 33 = 1 Am I correct? Yes, that's it. Link to comment https://forums.phpfreaks.com/topic/42540-solved-modulus-question/#findComment-206444 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.