diff options
author | Hameer Abbasi <einstein.edison@gmail.com> | 2020-04-10 20:19:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 13:19:36 -0500 |
commit | 1f3650643f341af8ca5c12529a479d73d3103895 (patch) | |
tree | 11ba7e500599d4aab078d8cb21b5c5f9e02ebe4e /numpy/lib/nanfunctions.py | |
parent | 42228fcb513c08729f822fa6be70e16a7a68067f (diff) | |
download | numpy-1f3650643f341af8ca5c12529a479d73d3103895.tar.gz |
BUG,DEP: Make `scalar.__round__()` behave like pythons round (#15840)
See issue gh-15297 and related mailing list discussion.
This PR bring scalar.__round__() in line with python, so that `round(scalar)` always returns a python integer, while `round(scalar, ndigits=0)` returns the same type. Since complex numbers are not supported in Python, and cannot be reasonably cast to integers they are deprecated.
Closes gh-15297
Diffstat (limited to 'numpy/lib/nanfunctions.py')
0 files changed, 0 insertions, 0 deletions