LOG: Calculating the Natural Logarithm

How to:

The LOG function returns the natural logarithm of a number.


Top of page

x
Syntax: How to Calculate the Natural Logarithm
LOG(in_value)

where:

in_value

Numeric

Is the value for which the natural logarithm is calculated. If you supply an expression, use parentheses as needed to ensure the correct order of evaluation. If in_value is less than or equal to 0, LOG returns 0.

Note: LOG does not use an output argument. The format of the result is floating-point double precision.



Example: Calculating the Natural Logarithm

LOG calculates the logarithm of CURR_SAL.

LOG(CURR_SAL)

For $29,700.00, the result is 10.30.

For $26,862.00, the result is 10.20.


iWay Software