Skip to content

Commit c225d02

Browse files
committed
address review: Return 0 otherwise.
1 parent cfbe4f7 commit c225d02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/c-api/float.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ Floating-Point Objects
158158
.. c:macro:: Py_IS_FINITE(X)
159159
160160
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``.
161+
that is, it is normal, subnormal or zero, but not infinite or NaN.
162+
Return ``0`` otherwise.
163163
164164
.. deprecated:: 3.14
165165
The macro is :term:`soft deprecated`. Use :c:macro:`!isfinite` instead.
@@ -168,16 +168,16 @@ Floating-Point Objects
168168
.. c:macro:: Py_IS_INFINITY(X)
169169
170170
Return ``1`` if the given floating-point number *X* is positive or negative
171-
infinity, else ``0``.
171+
infinity. Return ``0`` otherwise.
172172
173173
.. deprecated:: 3.14
174174
The macro is :term:`soft deprecated`. Use :c:macro:`!isinf` instead.
175175
176176
177177
.. c:macro:: Py_IS_NAN(X)
178178
179-
Return ``1`` if the given floating-point number *X* is a not-a-number (NaN) value,
180-
else ``0``.
179+
Return ``1`` if the given floating-point number *X* is a not-a-number (NaN)
180+
value. Return ``0`` otherwise.
181181
182182
.. deprecated:: 3.14
183183
The macro is :term:`soft deprecated`. Use :c:macro:`!isnan` instead.

0 commit comments

Comments
 (0)