Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python math.e Constant

Python math.e Constant

Python math Module Python math Module

Python math.e The constant returns Euler's number (2.7182...).

Syntax

The syntax of the math.e constant is as follows:

math.e

Return Value

Returns the floating-point number 2.718281828459045, representing the mathematical constant e.

Example

The following example returns Euler's number (2.7182...):

Example

Import the math package

import

math

Output the value of e

print

(

math

.

e

)

Output result:


2.718281828459045

Python math Module Python math Module