From: Yossef Mendelssohn Date: 2009-03-20T11:54:27+09:00 Subject: Re: Modulo ? On Mar 19, 5:15 pm, Michael Malone wrote: > Sorry for confusing everyone here, I just know of a particular case > where 0%7 = 7 was assumed. This is confusing. As in 0%7 = 7 is very confusing. A mod B shouldn't have a result that's equal to or greater than B. If that happens, you take a B out until you can't anymore. The remainder when A is divided by B is the same thing. If you end up with something greater than B, you stopped too soon. As John W. Kennedy pointed out, the difference between modulo and a simple remainder comes up when dealing with negative numbers. -- -yossef