Python math.e Constant
Example
Print the Euler's number:
# Import math Library
import math
# Print the value of E
print (math.e)
Try it Yourself »
Definition and Usage
The math.e
constant returns the Eular's number: 2.718281828459045.
Syntax
math.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.