Марат Нагаев <sidorovmarat1...@gmail.com> added the comment:
>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) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36228> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com