>wowhelm_
~/forever/addon-api/function/math.sign

math.sign

documented function · LuaMathExtensions
math.sign(value) : sign

Returns -1 for negative values, 0 for zero, and 1 for positive values.

──ARGUMENTS
value
number (The value whose sign will be returned.)
──RETURNS
sign
number (The sign of the value.)
──DETAILS
Secret Arguments
AllowedWhenUntainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.