The SIGN function returns the sign of a number, according to the following convention: 1 stands for x is positive; 0 stands for x is zero; -1 stands for x is negative.
For example:
SIGN(20 - 20) returns 0
SIGN(-87) returns -1
SIGN(20) returns 1
See also: