SQL Reference

SIGN

>>-SIGN--(--expression--)--------------------------------------><
 

The schema is SYSFUN.

Returns an indicator of the sign of the argument. If the argument is less than zero, -1 is returned. If argument equals zero, 0 is returned. If argument is greater than zero, 1 is returned.

The argument can be of any built-in numeric data types. DECIMAL and REAL are converted to double-precision floating-point number for processing by the function.

The result of the function is:

The result can be null; if the argument is null, the result is the null value.


 


[ Top of Page | Previous Page | Next Page ]