# Function Log() Foundation

Calculates the natural logarithm of a numeric value.

`Log( <nExpression> ) --> nNaturalLog`

Log() returns the natural logarithm of a numeric value. When <nExpression> is less than or equal to zero, a numeric overflow occurs and "*****" is displayed.

Log() is a mathematical function which calculates the natural logarithm of a numeric value. Log() is the reverse of the function Exp(). Because of rounding errors the results of Log() and Exp() can deviate from one another, and the expression Exp(Log(nValue)) can differ from the value nValue.

The number of decimal places in the display of the result depends only on SET DECIMALS and not on the current setting of SET FIXED.

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.