Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-142019: Add description about the exponent of result formatted wit…
…h presentation type 'e' (GH-142084)

(cherry picked from commit e27f76b)

Co-authored-by: 1nftf <QfxZ11@proton.me>
  • Loading branch information
1nftf authored and miss-islington committed Dec 16, 2025
commit cff5f368ee56932205e6dd7f029f35a538660393
3 changes: 3 additions & 0 deletions Doc/library/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
Loading