Well, thanks everyone who answered, much clearer now.
Bernard
Max Noel wrote:
In a slightly more generic fashion (everybody started dropping examples), the goal of an integer (euclidian) division (say, a / b) is to express an integer as such:
a = b * quotient + remainder
Where all the numbers used are integers, and 0 <= remainder < b.
When you perform integer division in Python, a / b (a // b in 2.4+) gives you the quotient, and a % b gives you the remainder.
See the other posts for examples of use :p
-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting and sweating as you run through my corridors... How can you challenge a perfect, immortal machine?"
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor