math.sgn
Syntax
Get the sign. If n < 0, then rn = -1, otherwise rn = 1.
rn - -1 or 1
n - number
9.0.182