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

This commit is contained in:
1nftf 2025-12-16 19:56:12 +08:00 committed by GitHub
parent e12c744b0a
commit e27f76b6fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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. |