Math.expm1 Function (JavaScript)

Returns the result of subtracting 1 from e (the base of the natural logarithms) raised to a power).

Syntax


Math.expm1(number)   

Remarks

The required number argument is a numeric expression representing the power of e.

The return value is a number. The constant e is Euler's number, approximately equal to 2.71828 and number is the supplied argument.

Applies To: Math Object

Requirements

Supported in Microsoft Edge (Edge browser). Also supported in Store apps (Microsoft Edge on Windows 10). See Version Information.
Not supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards, Internet Explorer 11 standards. Not supported in Windows 8.1.

See Also

Math Constants