The SIGN function returns +1, 0, or 1 depending on the sign of the argument.
FUNCTION SIGN ( argument-1 )