Numerical Constants

math.e

Approximate the base of natural logarithms as a float.

Formal Syntax & Structure

python syntaxpython
math.e

Return Value

float

The floating-point constant described above.

Working Example

Example Snippetpython
import mathprint(round(math.e, 6))
Python Reference