Skip to content

Commit 7ca34db

Browse files
[3.13] gh-141004: Document Py_MATH_{E, PI, TAU} constants (GH-141373) (#141472)
gh-141004: Document `Py_MATH_{E, PI, TAU}` constants (GH-141373) (cherry picked from commit f1330b3) Co-authored-by: Stan Ulbrych <[email protected]>
1 parent 18b883b commit 7ca34db

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
@@ -96,16 +96,33 @@ Floating-Point Objects
9696
the C11 standard ``<math.h>`` header.
9797
9898
99+
.. c:macro:: Py_MATH_E
100+
101+
The definition (accurate for a :c:expr:`double` type) of the :data:`math.e` constant.
102+
103+
99104
.. c:macro:: Py_MATH_El
100105
101106
High precision (long double) definition of :data:`~math.e` constant.
102107
103108
109+
.. c:macro:: Py_MATH_PI
110+
111+
The definition (accurate for a :c:expr:`double` type) of the :data:`math.pi` constant.
112+
113+
104114
.. c:macro:: Py_MATH_PIl
105115
106116
High precision (long double) definition of :data:`~math.pi` constant.
107117
108118
119+
.. c:macro:: Py_MATH_TAU
120+
121+
The definition (accurate for a :c:expr:`double` type) of the :data:`math.tau` constant.
122+
123+
.. versionadded:: 3.6
124+
125+
109126
.. c:macro:: Py_RETURN_NAN
110127
111128
Return :data:`math.nan` from a function.

0 commit comments

Comments
 (0)