This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Nathan.Goldbaum
Recipients Nathan.Goldbaum
Date 2018-01-12.22:32:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515796368.52.0.467229070634.issue32543@psf.upfronthosting.co.za>
In-reply-to
Content
According to PEP 238:


"floor division will be implemented in all the Python numeric types, and will have the semantics of:

a // b == floor(a/b)

except that the result type will be the common type into which a and b are coerced before the operation."

But consider the following cases in Python 3.6.3:

>>> 0.9//0.1
8.0
>>> 0.8//0.1
8.0
>>> import math
>>> math.floor(0.9/0.1)
9
>>> math.floor(0.8/0.1)
8

Am I missing something?
History
Date User Action Args
2018-01-12 22:32:48Nathan.Goldbaumsetrecipients: + Nathan.Goldbaum
2018-01-12 22:32:48Nathan.Goldbaumsetmessageid: <1515796368.52.0.467229070634.issue32543@psf.upfronthosting.co.za>
2018-01-12 22:32:48Nathan.Goldbaumlinkissue32543 messages
2018-01-12 22:32:48Nathan.Goldbaumcreate