21.10.2013 Views

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Internal functions<br />

• If x is negative or y is negative, the result is always NaN.<br />

• If x is positive and y is 0, +/-INF is returned, depending on x.<br />

• Bug: If x = 1 and y >= 0 (but not 1), +/-INF is returned.<br />

• Bug: If x = 0 and y > 0, the result is 0.<br />

Important<br />

If the external function LOG is declared in your database, it will override the internal function. To make the<br />

internal function available, DROP or ALTER the external function (UDF).<br />

Available in: DSQL, PSQL<br />

Added in: <strong>2.1</strong><br />

LOG10()<br />

Description: Returns the 10-based logarithm of the argument.<br />

Result type: DOUBLE PRECISION<br />

Syntax:<br />

LOG10 (number)<br />

• If the argument is 0, -INF is returned. If the argument is negative, NaN is returned.<br />

Important<br />

If the external function LOG10 is declared in your database, it will override the internal function. To make the<br />

internal function available, DROP or ALTER the external function (UDF).<br />

Available in: DSQL, ESQL, PSQL<br />

Added in: 2.0<br />

Changed in: <strong>2.1</strong><br />

LOWER()<br />

Description: Returns the lower-case equivalent of the input string. The exact result depends on the character<br />

set. With ASCII or NONE for instance, only ASCII characters are lowercased; with OCTETS, the entire string is<br />

returned unchanged. Since <strong>Firebird</strong> <strong>2.1</strong> this function also fully supports text BLOBs of any length and character<br />

set.<br />

143

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!