Returns the natural logarithm (base e) of a number.
The number to compute the natural logarithm of.
The natural logarithm of the given number.
Will throw an error if the input is not positive.
log(Math.E); // returns 1log(1); // returns 0 Copy
log(Math.E); // returns 1log(1); // returns 0
Returns the natural logarithm (base e) of a number.