From 63997b533673ef60cc85c14ff46b543dc7bbcfc7 Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Wed, 1 Mar 2017 10:24:46 -0500 Subject: DOC: Clarifying the meaning of small values for `suppress` print option. --- numpy/core/arrayprint.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/core/arrayprint.py') diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 318ad5495..64d241fe0 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -71,6 +71,8 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None, suppress : bool, optional Whether or not suppress printing of small floating point values using scientific notation (default False). + A number is "very small" if it is smaller than the current printing + precision. nanstr : str, optional String representation of floating point not-a-number (default nan). infstr : str, optional -- cgit v1.2.1 From ad4daf62b8e6daee30a28762b8059f949f77be84 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 23 Sep 2017 12:49:12 -0600 Subject: MAINT: Clarify of the suppress print option more. --- numpy/core/arrayprint.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'numpy/core/arrayprint.py') diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index 64d241fe0..c10d9c11e 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -69,10 +69,11 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None, The number of characters per line for the purpose of inserting line breaks (default 75). suppress : bool, optional - Whether or not suppress printing of small floating point values - using scientific notation (default False). - A number is "very small" if it is smaller than the current printing - precision. + If True, always print floating point numbers using fixed point + notation, in which case numbers equal to zero in the current precision + will print as zero. If False, then scientific notation is used when + absolute value of the smallest number is < 1e-4 or the ratio of the + maximum absolute value to the minimum is > 1e3. The default is False. nanstr : str, optional String representation of floating point not-a-number (default nan). infstr : str, optional -- cgit v1.2.1