Skip to content

Commit 8f25661

Browse files
[3.13] gh-142019: Add description about the exponent of result formatted with presentation type 'e' (GH-142084) (#142814)
Co-authored-by: 1nftf <QfxZ11@proton.me>
1 parent c2d34a1 commit 8f25661

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/string.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,9 @@ The available presentation types for :class:`float` and
536536
| | :class:`float`, and shows all coefficient digits |
537537
| | for :class:`~decimal.Decimal`. If ``p=0``, the decimal |
538538
| | point is omitted unless the ``#`` option is used. |
539+
| | |
540+
| | For :class:`float`, the exponent always contains at |
541+
| | least two digits, and is zero if the value is zero. |
539542
+---------+----------------------------------------------------------+
540543
| ``'E'`` | Scientific notation. Same as ``'e'`` except it uses |
541544
| | an upper case 'E' as the separator character. |

0 commit comments

Comments
 (0)