From 72d7fca745dd121056efaf42dc77b162202e52b6 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Mon, 10 Nov 2025 20:07:32 +0000 Subject: [PATCH 1/2] Commit --- Doc/c-api/float.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Doc/c-api/float.rst b/Doc/c-api/float.rst index 9e703a46445dce..216bbafb46054b 100644 --- a/Doc/c-api/float.rst +++ b/Doc/c-api/float.rst @@ -78,6 +78,23 @@ Floating-Point Objects Return the minimum normalized positive float *DBL_MIN* as C :c:expr:`double`. +.. c:macro:: Py_MATH_E + + The definition of the :data:`math.e` constant. + + +.. c:macro:: Py_MATH_PI + + The definition of the :data:`math.pi` constant. + + +.. c:macro:: Py_MATH_TAU + + The definition of the :data:`math.tau` constant. + + .. versionadded:: 3.6 + + .. c:macro:: Py_MATH_El High precision (long double) definition of :data:`~math.e` constant. From a12d05d761bfe05f6382ca44b38075c08d1d1588 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Tue, 11 Nov 2025 18:36:05 +0000 Subject: [PATCH 2/2] Sergey's review --- Doc/c-api/float.rst | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Doc/c-api/float.rst b/Doc/c-api/float.rst index 216bbafb46054b..e8db53c6c51888 100644 --- a/Doc/c-api/float.rst +++ b/Doc/c-api/float.rst @@ -80,33 +80,33 @@ Floating-Point Objects .. c:macro:: Py_MATH_E - The definition of the :data:`math.e` constant. + The definition (accurate for a :c:expr:`double` type) of the :data:`math.e` constant. -.. c:macro:: Py_MATH_PI +.. c:macro:: Py_MATH_El - The definition of the :data:`math.pi` constant. + High precision (long double) definition of :data:`~math.e` constant. + .. deprecated-removed:: 3.15 3.20 -.. c:macro:: Py_MATH_TAU - The definition of the :data:`math.tau` constant. +.. c:macro:: Py_MATH_PI - .. versionadded:: 3.6 + The definition (accurate for a :c:expr:`double` type) of the :data:`math.pi` constant. -.. c:macro:: Py_MATH_El +.. c:macro:: Py_MATH_PIl - High precision (long double) definition of :data:`~math.e` constant. + High precision (long double) definition of :data:`~math.pi` constant. .. deprecated-removed:: 3.15 3.20 -.. c:macro:: Py_MATH_PIl +.. c:macro:: Py_MATH_TAU - High precision (long double) definition of :data:`~math.pi` constant. + The definition (accurate for a :c:expr:`double` type) of the :data:`math.tau` constant. - .. deprecated-removed:: 3.15 3.20 + .. versionadded:: 3.6 .. c:macro:: Py_RETURN_NAN