Firebird Documentation IndexFirebird 2.1 Language Ref. UpdateInternal functions → LOG10()
Firebird Home Firebird Home Prev: LOG()Firebird Documentation IndexUp: Internal functionsNext: LOWER()

LOG10()

Tip

Find a more recent version at Firebird 5.0 Language Reference: LOG10()

Available in: DSQL, PSQL

Added in: 2.1

Description: Returns the 10-based logarithm of the argument.

Result type: DOUBLE PRECISION

Syntax: 

LOG10 (number)
  • If the argument is 0, -INF is returned. If the argument is negative, NaN is returned. This is inconsistent with LN(), which raises an error in these cases. In Firebird 2.5 and up, an error will be raised if the argument is negative or 0.

Important

If the external function LOG10 is declared in your database, it will override the internal function. To make the internal function available, DROP or ALTER the external function (UDF).

Prev: LOG()Firebird Documentation IndexUp: Internal functionsNext: LOWER()
Firebird Documentation IndexFirebird 2.1 Language Ref. UpdateInternal functions → LOG10()