divmod() question

Carsten Gaebler cg at schlund.de
Mon May 14 05:21:56 EDT 2001


Hi there!

The divmod() builtin functioin's documentation says:

"For floating point numbers the result is (q, a % b), where q is usually
math.floor(a / b) but may be 1 less than that."

What do "usually" and "may be 1 less" mean? Is divmod() platform
dependent?

Regards
Carsten.

cg.



More information about the Python-list mailing list