Returns 1 if the number is positive, -1 if the number is negative, and 0 if the number is equal to zero.