From: bchhabra2490 Date: Fri, 13 Sep 2019 17:20:21 +0000 (+0530) Subject: bpo-32790: Add info about alt format using # for 'g' in chart (GH-6624) X-Git-Tag: v3.9.0a1~439 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d44542f9a231bf725ecd82eb640a672c759a8227;p=thirdparty%2FPython%2Fcpython.git bpo-32790: Add info about alt format using # for 'g' in chart (GH-6624) --- diff --git a/Doc/library/string.rst b/Doc/library/string.rst index af52af0482c4..e2983db1ac83 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``, |