Skip to content

Commit ce1abaf

Browse files
authored
gh-99875: Document rounding mode for old-style formatting (#126382)
1 parent 4f87c99 commit ce1abaf

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
@@ -3202,6 +3202,10 @@ The conversion types are:
32023202
| | character in the result. | |
32033203
+------------+-----------------------------------------------------+-------+
32043204

3205+
For floating-point formats, the result should be correctly rounded to a given
3206+
precision ``p`` of digits after the decimal point. The rounding mode matches
3207+
that of the :func:`round` builtin.
3208+
32053209
Notes:
32063210

32073211
(1)

0 commit comments

Comments
 (0)