Message173259
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. |
|
Date |
User |
Action |
Args |
2012-10-18 12:04:01 | mark.dickinson | set | recipients:
+ mark.dickinson, nascheme, benjamin.peterson, alexhsamuel, r.david.murray, meador.inge, antocuni |
2012-10-18 12:04:01 | mark.dickinson | set | messageid: <1350561841.76.0.25737594457.issue9011@psf.upfronthosting.co.za> |
2012-10-18 12:04:01 | mark.dickinson | link | issue9011 messages |
2012-10-18 12:04:01 | mark.dickinson | create | |
|