0
ln
To calculate the natural logarithm
The function returns the logarithm to base e (the Euler’s number) and is therefore called the natural logarithm.
It returns a positive number. In the case of 0, the result is -∞ (minus infinity).
Syntax
ln(number)
Return
number
Example
ln(x)
To calculate the natural logarithm of a number x to the base e (e is the Euler’s number).
ln(1)
Result: 0
ln(0)
Result: -∞
ln(100)
Result: 4.605170185988092
See also
exp
, which calculates the natural exponential function.
Reply
Content aside
Related Articles