Vaguely related question about divmod

David Eppstein eppstein at ics.uci.edu
Tue Jul 24 20:29:19 EDT 2001


divmod(3.1415926535, 2.718281828) returns (1.0, 0.4233108255) almost as I 
would expect.  But, why is the first return value a float instead of an int?
-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/



More information about the Python-list mailing list