Skip to content

Wonkey math sgn

wonkey:wonkey.math.Sgn

Function Sgn:Int( x:T )#
Function Sgn:Double( x:T )#

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.