Math.expm1

expm1 — Returns Math.E raised to a power - 1.

Description

Math.expm1(number power)

Parameters

Name Description Type Default Optional
power number No

Examples

Example #1 – expm1 example
console.log(Math.expm1(0)); // 0 console.log(Math.expm1(0.5)); // 0.6487212707001282 console.log(Math.expm1(1)); // 1.718281828459045 console.log(Math.expm1(-1)); // -0.6321205588285577 console.log(Math.expm1(3)); // 19.085536923187668

External references