You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This is an old revision of the document!
a positive or negative integer value or the name of an integer variable.
The result will be an integer that is the absolute value of IntVal, that is the value with any negative sign removed.
More rigorously, the result will be the same as IntVal if IntVal is positive or zero, and -IntVal otherwise.
integer AbsInt; AbsInt = llAbs(-45); // sets AbsInt to 45 AbsInt = llAbs(0); // sets AbsInt to 0 AbsInt = llAbs(45); // sets AbsInt to 45
default { state_entry() { llOwnerSay((string)llAbs(-3) + ", " + (string)llAbs(5)); // will print: -3, 5 } }