Python cmath.e Constant
Example
Print the value of Euler e:
# Import cmath Library
import cmath
# Print the value of Euler e
print (cmath.e)
Try it Yourself »
Definition and Usage
The cmath.e
constant returns the eular's number: 2.718281828459045.
Syntax
cmath.e
Technical Details
Return Value: | A float value, 2.718281828459045, representing the mathematical constant e |
---|---|
Python Version: | 1.5 |
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.