Message225305
| Author |
mark.dickinson |
| Recipients |
mark.dickinson |
| Date |
2014年08月14日.16:47:41 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1408034861.79.0.503776123394.issue22198@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|