Skip to content

Clarify that constants are Python scalars #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 31, 2021
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