diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-12-27 17:37:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-27 17:37:33 +0000 |
commit | 9aa658ae3800a06fe61f304ca48a7d99a1ed3799 (patch) | |
tree | ed383859933743d9bcfa5b55905ff45f0dd7f8e8 | |
parent | 0a562f37b849d945b99ee2a212b53901601ae9af (diff) | |
download | numpy-9aa658ae3800a06fe61f304ca48a7d99a1ed3799.tar.gz |
Update doc/source/reference/arrays.scalars.rst
-rw-r--r-- | doc/source/reference/arrays.scalars.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/source/reference/arrays.scalars.rst b/doc/source/reference/arrays.scalars.rst index ea1cae23e..be7992d83 100644 --- a/doc/source/reference/arrays.scalars.rst +++ b/doc/source/reference/arrays.scalars.rst @@ -176,8 +176,12 @@ Inexact types .. note:: - The printing behavior of inexact scalars is to use as few digits as possible - to display the result unambiguously. This means that equal values at + Inexact scalars are printed using the fewest decimal digits needed to + distinguish their value from other values of the same datatype, + by judicious rounding. See the ``unique`` parameter of + `format_float_positional` and `format_float_scientific`. + + This means that variables with equal binary values but whose datatypes are of different precisions may display differently:: >>> f16 = np.float16("0.1") |