diff options
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r-- | Doc/library/math.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 9c3bd03..22f6f5f 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -97,6 +97,12 @@ Number-theoretic and representation functions <http://code.activestate.com/recipes/393090/>`_\. +.. function:: isfinite(x) + + Return ``True`` if *x* is neither an infinity nor a NaN, and + ``False`` otherwise. (Note that ``0.0`` *is* considered finite.) + + .. function:: isinf(x) Check if the float *x* is positive or negative infinity. |