Message225305
I'm not sure it's worth fixing this, but it seems worth recording:
>>> -0.5 // float('inf')
-1.0
I was expecting a value of `-0.0`, and while IEEE 754 doesn't cover the floor division operation, I'm reasonably confident that that's the value it would have recommended if it had. :-)
However, it's difficult to come up with a situation where the difference matters: there aren't any obvious invariants I can think of that are broken by this special case. So unless anyone thinks it should be changed, I'll settle for recording the oddity in this issue, and closing as won't fix after a short period. |
|
Date |
User |
Action |
Args |
2014-08-14 16:47:41 | mark.dickinson | set | recipients:
+ mark.dickinson |
2014-08-14 16:47:41 | mark.dickinson | set | messageid: <1408034861.79.0.503776123394.issue22198@psf.upfronthosting.co.za> |
2014-08-14 16:47:41 | mark.dickinson | link | issue22198 messages |
2014-08-14 16:47:41 | mark.dickinson | create | |
|