[Tutor] Basic terminology
Max Noel
maxnoel_fr at yahoo.fr
Wed Feb 16 00:34:40 CET 2005
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?"
More information about the Tutor
mailing list