summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorQiyu8 <fangchunlin@huawei.com>2020-03-02 14:54:12 +0800
committerQiyu8 <fangchunlin@huawei.com>2020-03-02 14:54:12 +0800
commitb8c7f390fa1ca51df6fb5bf02ed153dfbab47819 (patch)
tree1ebef48486b6d1352a3de5c0c0424a090310c9f1 /numpy/core
parentc2157d0bddd08ea8c340e6606422c10ecf562c0f (diff)
parent84ddedadaee13fe22cc36a0c67c3cb73e818ee9f (diff)
downloadnumpy-b8c7f390fa1ca51df6fb5bf02ed153dfbab47819.tar.gz
Merge branch 'master' of https://github.com/numpy/numpy into doc/benchmark
Doc improvement
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/getlimits.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/numpy/core/getlimits.py b/numpy/core/getlimits.py
index b00ef64bd..e2ff49393 100644
--- a/numpy/core/getlimits.py
+++ b/numpy/core/getlimits.py
@@ -300,12 +300,13 @@ class finfo:
bits : int
The number of bits occupied by the type.
eps : float
- The smallest representable positive number such that
- ``1.0 + eps != 1.0``. Type of `eps` is an appropriate floating
- point type.
- epsneg : floating point number of the appropriate type
- The smallest representable positive number such that
- ``1.0 - epsneg != 1.0``.
+ The difference between 1.0 and the next smallest representable float
+ larger than 1.0. For example, for 64-bit binary floats in the IEEE-754
+ standard, ``eps = 2**-52``, approximately 2.22e-16.
+ epsneg : float
+ The difference between 1.0 and the next smallest representable float
+ less than 1.0. For example, for 64-bit binary floats in the IEEE-754
+ standard, ``epsneg = 2**-53``, approximately 1.11e-16.
iexp : int
The number of bits in the exponent portion of the floating point
representation.
@@ -348,6 +349,8 @@ class finfo:
--------
MachAr : The implementation of the tests that produce this information.
iinfo : The equivalent for integer data types.
+ spacing : The distance between a value and the nearest adjacent number
+ nextafter : The next floating point value after x1 towards x2
Notes
-----