Problem:
The log function returns a numeric value that approximates the logarithm to the base e (natural log) of argument-1. The type of this function is numeric.
Generally the standard format is: FUNCTION LOG (argument-1) where argument-1 is a classic numeric and greater than zero.
The returned value is the approximation of the logarithm to the base e of argument-1 and the floating-point format is used for numeric non-integer results.
Resolution:
Here is an example:
COMPUTE RSULT = FUNCTION LOG (NUM).
NUM and RSULT are numeric data items; the value of NUM must be greater than 0. The value returned and stored in RSULT is an approximation of the logarithm to the base e of NUM.
#EnterpriseDeveloper
#MFDS