How to: |
LOG10 returns the base-10 logarithm of a numeric expression.
LOG10(num_exp)
where:
Numeric
Is the numeric value for which to calculate the base 10 logarithm.
The following request calculates the base 10 logarithm of current salaries.
TABLE FILE EMPLOYEE PRINT CURR_SAL AND COMPUTE LOG_CURR_SAL/D12.6 = LOG10(CURR_SAL); BY LAST_NAME BY FIRST_NAME WHERE DEPARTMENT EQ 'PRODUCTION'; ON TABLE SET PAGE NOLEAD ON TABLE SET STYLE * GRID=OFF,$ ENDSTYLE END
The output is shown in the following image.