The LOG function computes the natural logarithm of an expression.
Return Value
DECIMAL
Syntax
LOG(expression)
Arguments
The value of expression must be greater than zero. When the value is equal to or less than zero, LOG returns an NA value.
NA
Examples
Example 18-34 Calculating a Natural Logarithm
In this example the LOG function is used to calculate the natural logarithm of the expression 4,000 + 6,000. The statements
4,000 +
6,000
DECIMALS = 5 SHOW LOG(4000 + 6000)
produce the following result.
9.21034