Search…
Resources
Related Links
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 "-∞" (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 power to the base e with a number x as an exponent.
Last modified 2mo ago
Export as PDF
Copy link