summaryrefslogtreecommitdiff
path: root/numpy/core/code_generators/ufunc_docstrings.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2021-03-02 11:56:16 +0200
committerGitHub <noreply@github.com>2021-03-02 11:56:16 +0200
commit3867832a404f8eaaca0345c210d4f1d3a7b9d2bd (patch)
tree82b06563db68ecdef6b2e6038042be8267bb9f86 /numpy/core/code_generators/ufunc_docstrings.py
parent4f3aa0018b2a9adceddc5eb5361a2f09af759b06 (diff)
downloadnumpy-3867832a404f8eaaca0345c210d4f1d3a7b9d2bd.tar.gz
revert changes to note, add a sentence about fix
Diffstat (limited to 'numpy/core/code_generators/ufunc_docstrings.py')
-rw-r--r--numpy/core/code_generators/ufunc_docstrings.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/code_generators/ufunc_docstrings.py b/numpy/core/code_generators/ufunc_docstrings.py
index bb9540755..a9dbbf92e 100644
--- a/numpy/core/code_generators/ufunc_docstrings.py
+++ b/numpy/core/code_generators/ufunc_docstrings.py
@@ -1378,9 +1378,9 @@ add_newdoc('numpy.core.umath', 'floor',
Notes
-----
- Other than the NumPy ``floor`` function, which always rounds down, the
- FLOOR function in common spreadsheet programs calculates the
- "floor-towards-zero", i.e. ``FLOOR(-2.5) == -2``. This "floor-towards-zero"
+ Some spreadsheet programs calculate the "floor-towards-zero", where
+ ``floor(-2.5) == -2``. NumPy instead uses the definition of
+ `floor` where `floor(-2.5) == -3`. The "floor-towards-zero"
function is called ``fix`` in NumPy.
Examples