JavaScript Math.E Property
Math.E is Euler's number, the base of natural logarithms, approximately 2.718.
Description
The Math.E static property is Euler's number, e, approximately 2.718281828459045, the base of natural logarithms. It appears in growth and decay calculations such as compound interest. Math.exp(x) is the same as Math.E ** x.
Related constants include Math.LN2 and Math.LN10, the natural logarithms of 2 and 10, and Math.LOG2E and Math.LOG10E, which help convert between logarithm bases. All of them are read-only properties of the Math object.
In everyday code you'll mostly meet e through Math.exp() and Math.log(), for example in easing functions for animations, continuous compound interest and probability calculations.
Syntax
Math.EValue
About 2.718.
Example
Browser Support
The following information will show you the current browser support for the Math.E property. Hover over a browser icon to see the version that first introduced support for this property.
Desktop





Tablets & Mobile





