Don't click here unless you want to be banned.

LSL Wiki : sign

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are


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.

integer number=1; 
number = -number; //Number will be -1

Integer | Types
There is one comment on this page. [Display comments/form]