Firebird Documentation Index → Firebird 2.1 Language Ref. Update → Internal functions → LOG() |

Available in: DSQL, PSQL

Added in: 2.1

Description: Returns the * x*-based logarithm of

`y`

Result type: DOUBLE PRECISION

Syntax:

LOG (,`x`

)`y`

If

is negative or`x`

is negative, the result is always`y`

`NaN`

.If

is positive and`x`

is 0, +/-`y`

`INF`

is returned, depending on.`x`

Bug:If= 1 and`x`

>= 0 (but not 1), +/-`y`

`INF`

is returned.

Bug:If= 0 and`x`

> 0, the result is 0.`y`

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).

Firebird Documentation Index → Firebird 2.1 Language Ref. Update → Internal functions → LOG() |