From dd2ddde2a22b80ad8fee815276065f417bdd2177 Mon Sep 17 00:00:00 2001 From: Matti Picus Date: Thu, 13 Aug 2020 14:32:39 +0300 Subject: Apply suggestions from code review Co-authored-by: Eric Wieser --- numpy/core/function_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/core/function_base.py') diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py index 46ef6d6ec..b2f17cfeb 100644 --- a/numpy/core/function_base.py +++ b/numpy/core/function_base.py @@ -36,7 +36,8 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, .. versionchanged:: 1.20.0 Values are rounded towards ``-inf`` instead of ``0`` when an - integer ``dtype`` is specified. + integer ``dtype`` is specified. The old behavior can + still be obtained with ``np.linspace(start, stop, num).astype(int)`` Parameters ---------- -- cgit v1.2.1