https://github.com/python/cpython/commit/e27f76b6fe9340d9c92571a83e3e91baf52d140b
commit: e27f76b6fe9340d9c92571a83e3e91baf52d140b
branch: main
author: 1nftf <[email protected]>
committer: hugovk <[email protected]>
date: 2025-12-16T13:56:12+02:00
summary:
gh-142019: Add description about the exponent of result formatted with
presentation type 'e' (#142084)
files:
M Doc/library/string.rst
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 58c836c7382330..e3ad018d1d073b 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -546,6 +546,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]