sign(x)
The sign() function returns either a positive or negative ±1 or 0, indicating the sign of a number passed as an argument.
sign()
±1
0
sign(scalar) -> scalar