diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-07-11 19:47:37 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-07-11 19:47:37 +0000 |
commit | c762242ccad80957e432bbc9563549b7508b0f92 (patch) | |
tree | 9f2338c5be746fdbb0647c5deb9406da4a269a75 /Doc/library/math.rst | |
parent | 68c5de6d1cb51161bd7e7b2e52a613c4dbff1f47 (diff) | |
download | cpython-git-c762242ccad80957e432bbc9563549b7508b0f92.tar.gz |
Include versionadded in (c)math.isfinite docs (thanks Ezio Melotti). Other minor doc cleanups.
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r-- | Doc/library/math.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 22f6f5fba9..ec3955dabf 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -102,16 +102,18 @@ Number-theoretic and representation functions Return ``True`` if *x* is neither an infinity nor a NaN, and ``False`` otherwise. (Note that ``0.0`` *is* considered finite.) + .. versionadded:: 3.2 + .. function:: isinf(x) - Check if the float *x* is positive or negative infinity. + Return ``True`` if *x* is a positive or negative infinity, and + ``False`` otherwise. .. function:: isnan(x) - Check if the float *x* is a NaN (not a number). For more information - on NaNs, see the IEEE 754 standards. + Return ``True`` if *x* is a NaN (not a number), and ``False`` otherwise. .. function:: ldexp(x, i) |