Skip to content

Commit 81d373d

Browse files
committed
+ document Py_NAN
1 parent 4a7d572 commit 81d373d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Doc/c-api/float.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,20 @@ Floating-Point Objects
8080
8181
.. c:macro:: Py_INFINITY
8282
83-
This is equivalent to the :c:macro:`!INFINITY` macro from the C11 standard
84-
``<math.h>`` header.
83+
This macro expands a to constant expression of type :c:type:`double`, that
84+
represents the positive infinity.
85+
86+
On most platforms, this is equivalent to the :c:macro:`!INFINITY` macro from
87+
the C11 standard ``<math.h>`` header.
88+
89+
90+
.. c:macro:: Py_NAN
91+
92+
This macro expands a to constant expression of type :c:type:`double`, that
93+
represents a quiet not-a-number (qNaN) value.
94+
95+
On most platforms, this is equivalent to the :c:macro:`!NAN` macro from
96+
the C11 standard ``<math.h>`` header.
8597
8698
8799
.. c:macro:: Py_MATH_El

0 commit comments

Comments
 (0)