diff options
author | bchhabra2490 <bchhabra2490@gmail.com> | 2019-09-13 22:50:21 +0530 |
---|---|---|
committer | Stéphane Wirtel <stephane@wirtel.be> | 2019-09-13 18:20:21 +0100 |
commit | d44542f9a231bf725ecd82eb640a672c759a8227 (patch) | |
tree | ce699c4fa5b04c2b00619e1366c7b4d06a630720 | |
parent | a67ac2f2d9550e5a36d28f9b6eeacf6575dda2d5 (diff) | |
download | cpython-git-d44542f9a231bf725ecd82eb640a672c759a8227.tar.gz |
bpo-32790: Add info about alt format using # for 'g' in chart (GH-6624)
-rw-r--r-- | Doc/library/string.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst index af52af0482..e2983db1ac 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -508,7 +508,8 @@ The available presentation types for floating point and decimal values are: | | with presentation type ``'e'`` and precision ``p-1``. | | | In both cases insignificant trailing zeros are removed | | | from the significand, and the decimal point is also | - | | removed if there are no remaining digits following it. | + | | removed if there are no remaining digits following it, | + | | unless the ``'#'`` option is used. | | | | | | Positive and negative infinity, positive and negative | | | zero, and nans, are formatted as ``inf``, ``-inf``, | |