Numerical Constants
math.e
Approximate the base of natural logarithms as a float.
Formal Syntax & Structure
python syntaxpython
math.eReturn Value
float
The floating-point constant described above.
Working Example
Example Snippetpython
import mathprint(round(math.e, 6))