round off

W. Vanweersch n.vanweersch at hccnet.nl
Tue Nov 4 15:00:32 EST 2003


Hello,

The following looks strange to me in Python:
7/-3 gives -3

It looks like Python rounds off -2.33333 to -3! is this correct??
Isn't it -2?




Greets,



Wim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20031104/275ec999/attachment.html>


More information about the Python-list mailing list