LN

Click to skip syntax diagram
Read syntax diagramSkip visual syntax diagram>>-LN--(--expression--)----------------------------------------><
 

The LN function returns the natural logarithm of a number. The LN and EXP functions are inverse operations.

expression
The argument must be an expression that returns a value of any built-in numeric, character-string, or graphic-string data type. A string argument is cast to double-precision floating point before evaluating the function. For more information on converting strings to double-precision floating point, see DOUBLE_PRECISION or DOUBLE. The value of the argument must be greater than zero.

The data type of the result is double-precision floating point. If the argument can be null, the result can be null; if the argument is null, the result is the null value.

Example