[issue27363] Complex with negative zero imaginary part
Mark Dickinson
report at bugs.python.org
Sat Jun 25 11:17:51 EDT 2016
Mark Dickinson added the comment:
> People usually say it's because we don't have separate imaginary type, but we don't need it.
I think we do. Consider the case of something like -0 + 1j (the `repr` of complex(-0.0, 1.0)). That currently evaluates to `complex(0.0, 1.0)`, because the `-0.0` is combined with the `+0.0` real part of `1j`.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27363>
_______________________________________
More information about the Python-bugs-list
mailing list