FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-141004: Document `Py_MATH_{E, PI, TAU}` constants (GH-141373) by miss-islington · Pull Request #141472 · python/cpython · GitHub

/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
17 changes: 17 additions & 0 deletions Doc/c-api/float.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,33 @@ Floating-Point Objects
the C11 standard ``<math.h>`` header.


.. c:macro:: Py_MATH_E

The definition (accurate for a :c:expr:`double` type) of the :data:`math.e` constant.


.. c:macro:: Py_MATH_El

High precision (long double) definition of :data:`~math.e` constant.


.. c:macro:: Py_MATH_PI

The definition (accurate for a :c:expr:`double` type) of the :data:`math.pi` constant.


.. c:macro:: Py_MATH_PIl

High precision (long double) definition of :data:`~math.pi` constant.


.. c:macro:: Py_MATH_TAU

The definition (accurate for a :c:expr:`double` type) of the :data:`math.tau` constant.

.. versionadded:: 3.6


.. c:macro:: Py_RETURN_NAN

Return :data:`math.nan` from a function.
Expand Down
Loading

Back | FazBrowse Home | New Git URL