The LN()
function returns the natural logarithm of a number. To be more specific, it is the log
with base e
.
Figure 1 shows the mathematical representation of the LN()
function.
LN(number)
This function requires a number as a parameter. The number must be greater than zero.
LN()
returns the natural logarithm of a number sent as a parameter.
If a parameter is less than or equal to zero, it returns
NULL
.
/*example showing how to use LN(X)*/-- positive numberselect LN(10);-- negative numberselect LN(-6);-- zero numberselect LN(0);