A sign is the property of a number representing its direction from zero. Negative numbers are prefixed with the sign "-", as in "-1". Positive numbers can be prefixed with the "+" sign, but are usually left alone. Naturally, zero has no sign.
To change a number's sign in LSL
, the unary operator
"-" can be used.
number = -number; //Number will be -1