Go to main content
The LOG function computes the logarithm of an expression.
Do not confuse the LOGfunction with the function of the same name whichcreates a log file..
The base by which to compute the logarithm. When you do not specify a value, the function computes the natural logarithm of the expression by using e for the base where e is equal to
A numeric expression which is greater than zero. When the value is equal to or less than zero, LOG returns an
Example 8-14 Calculating a Natural Logarithm
In this example the LOG function is used to calculate the natural logarithm of the expression
6,000. The statements
DECIMALS = 5
SHOW LOG(4000 + 6000)
produce the following result.