LOG()
<< LN() | FB 2.1 Language Reference | LOG10() >>
LOG()
Added in: 2.1
Description
Returns the x
-based logarithm of y
.
Result type: DOUBLE PRECISION
Syntax
LOG (x, y)
- If
x
is negative ory
is negative, the result is alwaysNaN
. - If
x
is positive andy
is0
,+/-INF
is returned, depending onx
. - Bug: If
x = 1
andy >= 0
(but not1
),+/-INF
is returned. - Bug: If
x = 0
andy > 0
, the result is0
.
Important: If the external function LOG
is declared in your database, it will override the internal function. To make the internal function available, DROP
or ALTER
the external function (UDF).
back to top of page
<< LN() | FB 2.1 Language Reference | LOG10() >>