LOG returns the logarithm to the specified base of the argument. The return data type is the same as the argument.
Syntax
LOG ( [ base, ] expression )
Semantics
base |
specifies the base (default is base 10) |
expression |
is an expression of type INTEGER or DOUBLE PRECISION |
Examples
LOG(100.0)
Result: 2
LOG(2.0, 64.0)
Result: 6.0000000000