Comment on PEP-0238
Carey Evans
careye at spamcop.net
Tue Jul 10 21:33:15 EDT 2001
Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> writes:
> I would prefer it to mean integer division of fractional numbers, e.g.
> 1.3 div 0.3 == 4
> 1.3 mod 0.3 == 0.1
If it gets defined in terms of divmod(), as Guido would like to do
(see <cppubbipxg.fsf at cj20424-a.reston1.va.home.com>), then this would be:
1.3 div 0.3 == 4.0
1.3 mod 0.3 == 0.1
which is pretty much what you want.
--
Carey Evans http://home.clear.net.nz/pages/c.evans/
"Quiet, you'll miss the humorous conclusion."
More information about the Python-list
mailing list