monkey:monkey.math.Sgn
Gets the sign of a number.
Returns -1 is x less than 0, 1 if x is greater than 0 or 0 if x is equal to 0.
x