sign(x)
Number
Returns the sign of the input: 1 if the value is positive and -1 if the value is negative.
1
-1