]> granicus.if.org Git - python/commitdiff
bpo-32790: Add info about alt format using # for 'g' in chart (GH-6624)
authorbchhabra2490 <bchhabra2490@gmail.com>
Fri, 13 Sep 2019 17:20:21 +0000 (22:50 +0530)
committerStéphane Wirtel <stephane@wirtel.be>
Fri, 13 Sep 2019 17:20:21 +0000 (18:20 +0100)
Doc/library/string.rst

index af52af0482c431a0338476ef9cab5a145567ad43..e2983db1ac832198a14b85dedf0847613d029b0d 100644 (file)
@@ -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``,      |