Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions spec/API_specification/constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

> Array API specification for constants.

A conforming implementation of the array API standard must provide and support the following constants.
A conforming implementation of the array API standard must provide and support the following constants adhering to the following conventions.

- Each constant must have a Python floating-point data type (i.e., `float`) and be provided as a Python scalar value.

<!-- NOTE: please keep the constants in alphabetical order -->

Expand All @@ -11,7 +13,7 @@ A conforming implementation of the array API standard must provide and support t
(constant-e)=
### e

Euler's constant.
IEEE 754 floating-point representation of Euler's constant.

```text
e = 2.71828182845904523536028747135266249775724709369995...
Expand All @@ -30,7 +32,7 @@ IEEE 754 floating-point representation of Not a Number (`NaN`).
(constant-pi)=
### pi

The mathematical constant `π`.
IEEE 754 floating-point representation of the mathematical constant `π`.

```text
pi = 3.1415926535897932384626433...
Expand Down