re OnInteger division
Fredrik Lundh
fredrik at pythonware.com
Wed Nov 7 13:07:54 EST 2001
More information about the Python-list mailing list
Wed Nov 7 13:07:54 EST 2001
- Previous message (by thread): Unix message queues?
- Next message (by thread): re OnInteger division
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
John Thingstad wrote: > To achive a inverse you need to use the modulo as well > > so: > 9/4 = 2 > 9 %4 = 1 > > and > (9/ 4) *4 + (9%4) = 9 on the other hand, >>> from __future__ import division >>> (9/4)*4 + (9%4) 10.0 oh well. </F>
- Previous message (by thread): Unix message queues?
- Next message (by thread): re OnInteger division
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list