diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-03-31 11:31:50 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2021-03-31 13:28:32 -0600 |
commit | 09b42ebc9c46456f344cdaa91a60d8c07445a54d (patch) | |
tree | 1ee6557ca62c2f9a954deb31479475ad84bba7f9 | |
parent | 2afcdbf7b82c4196004e5fa60fffacd22d94b6d1 (diff) | |
download | numpy-09b42ebc9c46456f344cdaa91a60d8c07445a54d.tar.gz |
DOC: Add release note for gh-18629.
-rw-r--r-- | doc/release/upcoming_changes/18629.new_feature.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/18629.new_feature.rst b/doc/release/upcoming_changes/18629.new_feature.rst new file mode 100644 index 000000000..7d75c323f --- /dev/null +++ b/doc/release/upcoming_changes/18629.new_feature.rst @@ -0,0 +1,10 @@ +New ``min_digits`` argument for printing float values +----------------------------------------------------- +A new ``min_digits`` argument has been added to the dragon4 float printing +functions `np.format_float_positional` and `np.format_float_scientific` . This +kwd guarantees that at least the given number of digits will be printed when +printing in unique=True mode, even if the extra digits are unnecessary to +uniquely specify the value. It is the counterpart to the precision argument +which sets the maximum number of digits to be printed. When unique=False in +fixed precision mode, it has no effect and the precision argument fixes the +number of digits. |