]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Update NaNs handling description in `c-api/float.rst` (GH-141179) (#141194)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 7 Nov 2025 13:40:59 +0000 (14:40 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Nov 2025 13:40:59 +0000 (13:40 +0000)
Update NaNs handling description in `c-api/float.rst` (GH-141179)

Clarified the behavior of NaNs on IEEE platforms regarding signaling and quiet NaNs.
(cherry picked from commit 920286d6b296f9971fc79e14ec22966f8f7a7b90)

Co-authored-by: W. H. Wang <mattwang44@gmail.com>
Doc/c-api/float.rst

index 1085c32a53707122b5c5250310bf357265f2c213..edee498a0b80f3920f024d0405680c514c056660 100644 (file)
@@ -113,8 +113,8 @@ NaNs (if such things exist on the platform) isn't handled correctly, and
 attempting to unpack a bytes string containing an IEEE INF or NaN will raise an
 exception.
 
-Note that NaNs type may not be preserved on IEEE platforms (silent NaN become
-quiet), for example on x86 systems in 32-bit mode.
+Note that NaNs type may not be preserved on IEEE platforms (signaling NaN become
+quiet NaN), for example on x86 systems in 32-bit mode.
 
 On non-IEEE platforms with more precision, or larger dynamic range, than IEEE
 754 supports, not all values can be packed; on non-IEEE platforms with less