From: Sergey B Kirpichev Date: Wed, 11 Mar 2026 13:25:24 +0000 (+0300) Subject: gh-99875: Document rounding mode for old-style formatting (#126382) X-Git-Tag: v3.15.0a8~354 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce1abaf9b83f8535749c6d3d0a0fabf15d87079f;p=thirdparty%2FPython%2Fcpython.git gh-99875: Document rounding mode for old-style formatting (#126382) --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index a70bda47da6f..6b55daa9b6ea 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -3202,6 +3202,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)