Firebird Documentation IndexFirebird 2.1 Language Ref. UpdateInternal functions → SIGN()
Firebird Home Firebird Home Prev: RPAD()Firebird Documentation IndexUp: Internal functionsNext: SIN()

SIGN()

Available in: DSQL, PSQL

Added in: 2.1

Description: Returns the sign of the argument: -1, 0 or 1.

Result type: SMALLINT

Syntax: 

SIGN (number)

Important

If the external function SIGN 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: RPAD()Firebird Documentation IndexUp: Internal functionsNext: SIN()
Firebird Documentation IndexFirebird 2.1 Language Ref. UpdateInternal functions → SIGN()