File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -157,25 +157,27 @@ Floating-Point Objects
157157
158158 .. c :macro :: Py_IS_FINITE(X)
159159
160- Determines if the given floating-point number *X * has finite value,
161- that is, it is normal, subnormal or zero, but not infinite or NaN.
160+ Return ``1 `` if the given floating-point number *X * is finite,
161+ that is, it is normal, subnormal or zero, but not infinite or NaN;
162+ else ``0 ``.
162163
163164 .. deprecated :: 3.14
164165 The macro is :term: `soft deprecated `. Use :c:macro: `!isfinite ` instead.
165166
166167
167168.. c :macro :: Py_IS_INFINITY(X)
168169
169- Determines if the given floating-point number *X * is positive or negative
170- infinity.
170+ Return `` 1 `` if the given floating-point number *X * is positive or negative
171+ infinity, else `` 0 `` .
171172
172173 .. deprecated :: 3.14
173174 The macro is :term: `soft deprecated `. Use :c:macro: `!isinf ` instead.
174175
175176
176177.. c :macro :: Py_IS_NAN(X)
177178
178- Determines if the given floating-point number *X * is a not-a-number (NaN) value.
179+ Return ``1 `` if the given floating-point number *X * is a not-a-number (NaN) value,
180+ else ``0``.
179181
180182 .. deprecated:: 3.14
181183 The macro is :term:`soft deprecated`. Use :c:macro:`!isnan` instead.
You can’t perform that action at this time.
0 commit comments