sign x
sign returns the sign of the operand as -1, 0, or 1
sign
-1
0
1
sign 1 // 1sign 100 // 1sign 0 // 0sign -1 // -1sign -100 // -1