From 7776bc6166915322bc61c4be988fc99727bc2f9a Mon Sep 17 00:00:00 2001 From: Inessa Pawson Date: Wed, 19 Oct 2022 13:01:30 -0400 Subject: DOC: Add note to clarify relationship between round and around (#21853) Improve docstring to clarify the relationship between np.round and np.around Co-authored-by: Mukulika Pahari , Aparna Bushan Co-authored-by: Ross Barnowski --- numpy/core/fromnumeric.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/core/fromnumeric.py') diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 89d731e32..ca9d55cb7 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -3274,12 +3274,13 @@ def around(a, decimals=0, out=None): See Also -------- ndarray.round : equivalent method - ceil, fix, floor, rint, trunc Notes ----- + `~numpy.round` is often used as an alias for `~numpy.around`. + For values exactly halfway between rounded decimal values, NumPy rounds to the nearest even value. Thus 1.5 and 2.5 round to 2.0, -0.5 and 0.5 round to 0.0, etc. -- cgit v1.2.1