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

LSL Wiki : sign

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl338.us.archive.org

SIGN

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.

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


Integer | Types
Comments [Hide comments/form]
Nice site man! This will be my first time visiting. Keep up the great work. Thanks much!
-- 8-255-154-202.wol.net.pk (2007-12-17 01:28:11)
Attach a comment to this page: