Skip to content

Commit 192b4d7

Browse files
authored
Clarify that constants are Python scalars (#169)
1 parent e3927fd commit 192b4d7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/API_specification/constants.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
> Array API specification for constants.
44
5-
A conforming implementation of the array API standard must provide and support the following constants.
5+
A conforming implementation of the array API standard must provide and support the following constants adhering to the following conventions.
6+
7+
- Each constant must have a Python floating-point data type (i.e., `float`) and be provided as a Python scalar value.
68

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

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

14-
Euler's constant.
16+
IEEE 754 floating-point representation of Euler's constant.
1517

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

33-
The mathematical constant `π`.
35+
IEEE 754 floating-point representation of the mathematical constant `π`.
3436

3537
```text
3638
pi = 3.1415926535897932384626433...

0 commit comments

Comments
 (0)