From 245ce7ac0bb4418529c8951919e5c69b99145e44 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Mon, 4 Nov 2024 08:50:57 +0300 Subject: [PATCH] gh-99875: document rounding mode for old-style formatting --- Doc/library/stdtypes.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index a9b7662dcb212b..8c4fc53a2494ba 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2511,6 +2511,10 @@ The conversion types are: | | character in the result. | | +------------+-----------------------------------------------------+-------+ +For floating-point formats, the result should be correctly rounded to a given +precision ``p`` of digits after the decimal point. The rounding mode matches +that of the :func:`round` builtin. + Notes: (1)