diff options
author | bchhabra2490 <bchhabra2490@gmail.com> | 2019-09-13 17:20:21 (GMT) |
---|---|---|
committer | Stéphane Wirtel <stephane@wirtel.be> | 2019-09-13 17:20:21 (GMT) |
commit | d44542f9a231bf725ecd82eb640a672c759a8227 (patch) | |
tree | ce699c4fa5b04c2b00619e1366c7b4d06a630720 | |
parent | a67ac2f2d9550e5a36d28f9b6eeacf6575dda2d5 (diff) | |
download | cpython-d44542f9a231bf725ecd82eb640a672c759a8227.zip cpython-d44542f9a231bf725ecd82eb640a672c759a8227.tar.gz cpython-d44542f9a231bf725ecd82eb640a672c759a8227.tar.bz2 |
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 af52af0..e2983db 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``, | |