JavaScript EProperty

Math 对象参考手册JavaScript Math Object

Example

> Returns Euler's number:

Math.E;

Output:

2.718281828459045

Try it yourself »

Definition and Usage

The Math.E property represents the arithmetic constant e, the base of natural logarithms, approximately 2.718.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All browsers support the E property.


Syntax

Math.E

Technical Details

Return value: A number, representing Euler's number.
JavaScript Version: 1.0


Math 对象参考手册JavaScript Math Object

Other Extensions