Message228356
| Author |
mark.dickinson |
| Recipients |
benjamin.peterson, mark.dickinson, pitrou |
| Date |
2014年10月03日.17:50:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1412358631.91.0.0570879729123.issue22548@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> Oops, I get it now.
Okay. :-)
Just for the record, for anyone encountering this issue in the future, here's the relevant extract from section 6.3 of IEEE 754-2008:
"""
When the sum of two operands with opposite signs (or the difference of two operands with like signs) is exactly zero, the sign of that sum (or difference) shall be +0 in all rounding-direction attributes except roundTowardNegative; under that attribute, the sign of an exact zero sum (or difference) shall be −0. However, x + x = x − (−x) retains the same sign as x even when x is zero.
"""
It doesn't cover the "sum with like signs" or "difference with opposite signs" cases, I suppose because it should be obvious what happens in those cases. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年10月03日 17:50:31 | mark.dickinson | set | recipients:
+ mark.dickinson, pitrou, benjamin.peterson |
| 2014年10月03日 17:50:31 | mark.dickinson | set | messageid: <1412358631.91.0.0570879729123.issue22548@psf.upfronthosting.co.za> |
| 2014年10月03日 17:50:31 | mark.dickinson | link | issue22548 messages |
| 2014年10月03日 17:50:31 | mark.dickinson | create |
|