- Categories:
Numeric functions (Logarithmic)
LOG¶
Returns the logarithm of a numeric expression.
- See also:
Syntax¶
Arguments¶
baseThe “base” to use (e.g. 10 for base 10 arithmetic).
This can be of any numeric data type (INTEGER, fixed-point, or floating point).
baseshould be greater than 0.baseshould not be exactly 1.0.exprThe value for which you want to know the log.
This can be of any numeric data type (INTEGER, fixed-point, or floating point).
exprshould be greater than 0.
Returns¶
If the input expression is of type DECFLOAT, the returned type is DECFLOAT. Otherwise, the returned type is FLOAT.
Usage notes¶
- If
baseis 1 or less than or equal to 0, an error is returned. - If
expris less than or equal to 0, an error is returned.