E (JavaScript)
The value of e.
Defined in
Math (JavaScript)Syntax
Math.E
Usage
E
is a constant.The value of e is approximately 2.718281828459045.
This
number is the base for natural logarithms and is sometimes called
the Euler Number
.
Examples
This buttononclick
event
calculates the result of compounding interest continuously.sessionScope.amount =
sessionScope.principal * (
Math.pow(Math.E,
sessionScope.rate * sessionScope.time / 100))