Math

math.sign

Returns negative 1 if x < 0, 0 if x == 0, or 1 if x > 0.

Syntax

sign(x: number)  returns  number