sign returns -1 if n<0. If n=0, then the function returns 0. If n>0, then SIGN returns 1.