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 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 <>
> 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.
Date User Action Args
2014-10-03 17:50:31mark.dickinsonsetrecipients: + mark.dickinson, pitrou, benjamin.peterson
2014-10-03 17:50:31mark.dickinsonsetmessageid: <>
2014-10-03 17:50:31mark.dickinsonlinkissue22548 messages
2014-10-03 17:50:31mark.dickinsoncreate