LOG10 Function

Returns the logarithm to the base 10.

Category: Mathematical

Syntax

LOG10(argument)

Required Argument

argument

specifies a numeric constant, variable, or expression.

Range must be positive.

Example

The following SAS statements produce these results.
SAS Statement
Result
x=log10(1.0);
0
x=log10(10.0);
1
x=log10(100.0);
2