Integer division and remainder

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Wed Aug 15 05:53:21 EDT 2001


15 Aug 2001 02:48:59 -0700, Paul Rubin <phr-n2001 at nightsong.com> pisze:

> Anyway C apparently doesn't specify a behavior.

C89 doesn't, C99 does (towards 0).

Haskell has both: div & mod, quot & rem.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list