]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix outdated note about 'int' rounding or truncating (#102736)
authorMark Dickinson <dickinsm@gmail.com>
Thu, 16 Mar 2023 20:34:42 +0000 (20:34 +0000)
committerGitHub <noreply@github.com>
Thu, 16 Mar 2023 20:34:42 +0000 (20:34 +0000)
Doc/library/stdtypes.rst

index 550f808a16dfaae3d7c9adf0dc5ff34f3f6f35d1..bcfc6e5cfce61172547945dd5464b071aad7f3cf 100644 (file)
@@ -335,11 +335,10 @@ Notes:
       single: ceil() (in module math)
       single: trunc() (in module math)
       pair: numeric; conversions
-      pair: C; language
 
-   Conversion from floating point to integer may round or truncate
-   as in C; see functions :func:`math.floor` and :func:`math.ceil` for
-   well-defined conversions.
+   Conversion from :class:`float` to :class:`int` truncates, discarding the
+   fractional part. See functions :func:`math.floor` and :func:`math.ceil` for
+   alternative conversions.
 
 (4)
    float also accepts the strings "nan" and "inf" with an optional prefix "+"