Skip to content

Commit 69f453c

Browse files
committed
Add the constants as floats
1 parent 103a8fb commit 69f453c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/API_specification/signatures/constants.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
e = None
1+
e = 2.718281828459045
22
"""
33
IEEE 754 floating-point representation of Euler's constant.
44
55
``e = 2.71828182845904523536028747135266249775724709369995...``
66
"""
77

8-
inf = None
8+
inf = float('inf')
99
"""
1010
IEEE 754 floating-point representation of (positive) infinity.
1111
"""
1212

13-
nan = None
13+
nan = float('nan')
1414
"""
1515
IEEE 754 floating-point representation of Not a Number (``NaN``).
1616
"""
1717

18-
pi = None
18+
pi = 3.141592653589793
1919
"""
2020
IEEE 754 floating-point representation of the mathematical constant ``π``.
2121

0 commit comments

Comments
 (0)