Skip to content

Commit 245ce7a

Browse files
committed
gh-99875: document rounding mode for old-style formatting
1 parent 081706f commit 245ce7a

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
@@ -2511,6 +2511,10 @@ The conversion types are:
25112511
| | character in the result. | |
25122512
+------------+-----------------------------------------------------+-------+
25132513

2514+
For floating-point formats, the result should be correctly rounded to a given
2515+
precision ``p`` of digits after the decimal point. The rounding mode matches
2516+
that of the :func:`round` builtin.
2517+
25142518
Notes:
25152519

25162520
(1)

0 commit comments

Comments
 (0)