Firebird Documentation IndexFirebird 2.1 Language Ref. UpdateExternal functions (UDFs) → sign
Firebird Home Firebird Home Prev: sdowFirebird Documentation IndexUp: External functions (UDFs)Next: sin

sign

Library: ib_udf

Added in: IB

Better alternative: Internal function SIGN()

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

Result type: INTEGER

Syntax: 

sign (number)

Declaration: 

DECLARE EXTERNAL FUNCTION sign
   DOUBLE PRECISION
   RETURNS INTEGER BY VALUE
   ENTRY_POINT 'IB_UDF_sign' MODULE_NAME 'ib_udf'
Prev: sdowFirebird Documentation IndexUp: External functions (UDFs)Next: sin
Firebird Documentation IndexFirebird 2.1 Language Ref. UpdateExternal functions (UDFs) → sign