Math.expm1

Returns the result e raised to the power of the given value and substracted by one.

Syntax

expm1(value)

Parameters

Return value

A number.

Examples

Math.expm1(2)
6.38905609893065
// Compare:
Math.pow(Math.E, 2) - 1
6.3890560989306495