diff options
-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") |