Log

log returns the 10 based logarithm of its argument.

Syntax

 log(NUMERIC_EXPR)

Examples

 Y = log(1000): # Returns 3

Description

This function returns the decimal logarithm of its argument. The type of result is Double. The reverse function of log(x) is the power of 10 : 10^x.

Associated errors

Error codeDescription
10The argument is not numeric.
14The argument is negative.
52The argument is null.

See also

ln, exp.