Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: add note to numpy.rint() docstrings #18630

Merged
merged 1 commit into from
Mar 16, 2021
Merged

DOC: add note to numpy.rint() docstrings #18630

merged 1 commit into from
Mar 16, 2021

Conversation

cval26
Copy link
Contributor

@cval26 cval26 commented Mar 16, 2021

DOC: add note to numpy.rint() docstrings

Closes #18556.

Adds a note to numpy.rint() docstrings explaining that for values exactly halfway between rounded decimal values, the function rounds to the nearest even value. The note is identical to that of numpy.around() for consistency.

@charris charris merged commit 9ea0ca9 into numpy:main Mar 16, 2021
@charris
Copy link
Member

charris commented Mar 16, 2021

Thanks @chrisvalx .

@cval26 cval26 deleted the rint-docstrings branch March 17, 2021 03:51
@timhoffm
Copy link
Contributor

Thanks @chrisvalx. What is still not clear to me: Is np.around(a) equal to np.rint(a)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve documentation of numpy.rint()
3 participants