From: Michael Malone Date: 2009-03-20T07:15:32+09:00 Subject: Re: Modulo ? Sebastian Hungerecker wrote: > Michael Malone wrote: > >> Many people I know and work with simplify the modulo operator to >> themselves as remainder, so mentally (whether or not it is correct) >> assume 0/7 = 0 r 7 >> > > Maybe I'm slow, but I don't get it. > You're saying that many people assume that x % y is the same as the remainder > of dividing x by y, right? I don't see anything wrong with that. > If I understand you correctly, you're also saying that this assumption is > wrong in the case of 0%7. I don't understand why that should be the case. The > remainder of 0/7 is 0, right? And 0%7 is also 0, so where's the problem? > > Still confused, > Sebastian > > Sorry for confusing everyone here, I just know of a particular case where 0%7 = 7 was assumed. I was trying to stop this happening again, but I think I've caused more confusion than it's worth. Sorry folks. Ignore my post and you'll sleep more easily. Michael ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. =======================================================================