| Oracle9i SQL Reference Release 2 (9.2) Part Number A96540-02 |
|
|
View PDF |
sign::=
SIGN returns -1 if n<0, then . If n=0, then the function returns 0. If n>0, then SIGN returns 1.
The following example indicates that the function's argument (-15) is <0:
SELECT SIGN(-15) "Sign" FROM DUAL; Sign ---------- -1