Message173259
| Author |
mark.dickinson |
| Recipients |
alexhsamuel, antocuni, benjamin.peterson, mark.dickinson, meador.inge, nascheme, r.david.murray |
| Date |
2012年10月18日.12:04:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1350561841.76.0.25737594457.issue9011@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
No, that's expected behaviour.
1j is complex(0.0, 1.0)
-1j is complex(-0.0, -1.0)
so -1j.real is -0.0. There's not really any other sensible way to handle this.
The complex-from-string constructor, on the other hand, is more careful about interpreting signs. |
|