[issue22548] Bogus parsing of negative zeros in complex literals

Mark Dickinson report at bugs.python.org
Fri Oct 3 19:29:41 CEST 2014


Mark Dickinson added the comment:

Sorry; that should be:

  complex(-0.0, 0.0) - complex(0.0, 0.0)

The imaginary part is then worked out as (0.0 - 0.0), which (in all rounding modes but round-towards-negative) is 0.0.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22548>
_______________________________________


More information about the Python-bugs-list mailing list