https://github.com/python/cpython/commit/8f25661ed94d47f2c005394d0fd34bf5c341ed09
commit: 8f25661ed94d47f2c005394d0fd34bf5c341ed09
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2025-12-16T12:02:07Z
summary:

[3.13] gh-142019: Add description about the exponent of result formatted with 
presentation type 'e' (GH-142084) (#142814)

Co-authored-by: 1nftf <[email protected]>

files:
M Doc/library/string.rst

diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index e0ecb3799eabf7..c3b0e1c3816060 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -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.            |

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to