]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-142019: Add description about the exponent of result formatted with present...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 16 Dec 2025 12:02:07 +0000 (13:02 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 12:02:07 +0000 (12:02 +0000)
Co-authored-by: 1nftf <QfxZ11@proton.me>
Doc/library/string.rst

index e0ecb3799eabf70d5c66c643dc86daf721ff4aed..c3b0e1c381606080652da19d9848a6a15aecca66 100644 (file)
@@ -536,6 +536,9 @@ The available presentation types for :class:`float` and
    |         | :class:`float`, and shows all coefficient digits         |
    |         | for :class:`~decimal.Decimal`.  If ``p=0``, the decimal  |
    |         | point is omitted unless the ``#`` option is used.        |
+   |         |                                                          |
+   |         | For :class:`float`, the exponent always contains at      |
+   |         | least two digits, and is zero if the value is zero.      |
    +---------+----------------------------------------------------------+
    | ``'E'`` | Scientific notation. Same as ``'e'`` except it uses      |
    |         | an upper case 'E' as the separator character.            |