math.sign

Returns the sign of the given number
Returns 1 if the number is positive,
-1 if it's negative, and 0 if it's 0
overload 1:
math.sign(value)
Method Property Fluent Description Representation
value accepts a Number
Return Value a Number
a a