Skip to content

Commit f1330b3

Browse files
gh-141004: Document Py_MATH_{E, PI, TAU} constants (#141373)
1 parent 2ac738d commit f1330b3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Doc/c-api/float.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,37 @@ Floating-Point Objects
9999
the C11 standard ``<math.h>`` header.
100100
101101
102+
.. c:macro:: Py_MATH_E
103+
104+
The definition (accurate for a :c:expr:`double` type) of the :data:`math.e` constant.
105+
106+
102107
.. c:macro:: Py_MATH_El
103108
104109
High precision (long double) definition of :data:`~math.e` constant.
105110
106111
.. deprecated-removed:: 3.15 3.20
107112
108113
114+
.. c:macro:: Py_MATH_PI
115+
116+
The definition (accurate for a :c:expr:`double` type) of the :data:`math.pi` constant.
117+
118+
109119
.. c:macro:: Py_MATH_PIl
110120
111121
High precision (long double) definition of :data:`~math.pi` constant.
112122
113123
.. deprecated-removed:: 3.15 3.20
114124
115125
126+
.. c:macro:: Py_MATH_TAU
127+
128+
The definition (accurate for a :c:expr:`double` type) of the :data:`math.tau` constant.
129+
130+
.. versionadded:: 3.6
131+
132+
116133
.. c:macro:: Py_RETURN_NAN
117134
118135
Return :data:`math.nan` from a function.

0 commit comments

Comments
 (0)