Skip to content

Commit 17a9c26

Browse files
[3.13] gh-99875: Document rounding mode for old-style formatting (GH-126382) (#145812)
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 3b5c4a2 commit 17a9c26

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
@@ -3012,6 +3012,10 @@ The conversion types are:
30123012
| | character in the result. | |
30133013
+------------+-----------------------------------------------------+-------+
30143014

3015+
For floating-point formats, the result should be correctly rounded to a given
3016+
precision ``p`` of digits after the decimal point. The rounding mode matches
3017+
that of the :func:`round` builtin.
3018+
30153019
Notes:
30163020

30173021
(1)

0 commit comments

Comments
 (0)