Message309873
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? |
|
Date |
User |
Action |
Args |
2018-01-12 22:32:48 | Nathan.Goldbaum | set | recipients:
+ Nathan.Goldbaum |
2018-01-12 22:32:48 | Nathan.Goldbaum | set | messageid: <1515796368.52.0.467229070634.issue32543@psf.upfronthosting.co.za> |
2018-01-12 22:32:48 | Nathan.Goldbaum | link | issue32543 messages |
2018-01-12 22:32:48 | Nathan.Goldbaum | create | |
|