Skip to content

Commit f688a4b

Browse files
[3.14] gh-99875: Document rounding mode for old-style formatting (GH-126382) (#145811)
gh-99875: Document rounding mode for old-style formatting (GH-126382) (cherry picked from commit ce1abaf) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent ca8ca6b commit f688a4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/stdtypes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3190,6 +3190,10 @@ The conversion types are:
31903190
| | character in the result. | |
31913191
+------------+-----------------------------------------------------+-------+
31923192

3193+
For floating-point formats, the result should be correctly rounded to a given
3194+
precision ``p`` of digits after the decimal point. The rounding mode matches
3195+
that of the :func:`round` builtin.
3196+
31933197
Notes:
31943198

31953199
(1)

0 commit comments

Comments
 (0)