Links
Comment on page

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).
1
ln(1)
Result: 0
1
ln(0)
Result: -∞
1
ln(100)
Result: 4.605170185988092

See also

exp, which calculates the natural exponential function.