LOG Function

Returns the natural (base e) logarithm.

Category: Mathematical

Syntax

LOG(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=log(1.0);
0
x=log(10.0);
2.302585093