On Tue, Dec 13, 2011 at 3:15 AM, Arnaud Delobelle <arno...@gmail.com> wrote:
>
> You mean (a + b) % c == (a%c + b%c) % c
>
> :)

It's just integer wraparound. Modulo 9 is the same as "render this
number in base 9 and take the last digit" (and printing a number in
base 9 would normally be done with mod 9 division), and most people
can wrap their heads around the way an odometer wraps around.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to