[Python-3000] bug in modulus?

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Thu May 4 23:42:28 CEST 2006


"Tim Peters" <tim.peters at gmail.com> writes:

> If Python switched to C99's definition of % for both integers and
> floats, that would work out better so far as it goes.  But Python's %
> makes much more sense for integers, so that would be a flea on the
> tail of the dog wagging the guy walking the dog (float % is rare in
> real life).

Haskell has both div & mod (as in Python) and quot & rem (as in C99).
Only for integers though.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Python-3000 mailing list