Math.log1p

log1p — Returns the Math.E of 1 + a number.

Description

Math.log1p(number number)

Parameters

Name Description Type Default Optional
number number No

Examples

Example #1 – log1p example
console.log(Math.log1p(3)); // 1.3862943611198906 console.log(Math.log1p(8)); // 2.1972245773362196 console.log(Math.log1p(-3)); // NaN

External references