Message337507
>For those rare cases where this is needed, it isn't that hard to spell out `complex(floor(z.real)
But in Python we have math.tau. However it's just 2*pi.
>`math.floor` of a `float` object returns an `int`
Maybe the best solution is to add functions floor and ceil to cmath module and edit floor and ceil function (in case passing complex argument these function could raise TypeError) |
|
Date |
User |
Action |
Args |
2019-03-08 16:18:35 | nagayev | set | recipients:
+ nagayev, lemburg, rhettinger, mark.dickinson, stutzbach, zach.ware, josh.r |
2019-03-08 16:18:35 | nagayev | set | messageid: <1552061915.71.0.404786049281.issue36228@roundup.psfhosted.org> |
2019-03-08 16:18:35 | nagayev | link | issue36228 messages |
2019-03-08 16:18:35 | nagayev | create | |
|