ln() function

The ln() function returns the natural logarithm (base e, which is 2.718281828 rounded to precision) of a given numeric expression.

Syntax

ln(num.exp)

Parameter(s)

num.exp Number to be converted to its natural logarithm form.

Description

If the expression is less than or equal to 0, ln returns a 0 and prints a run-time error message.

This function is the inverse of the exp() function.