User:Thraxis Epsilon/LSL Portal LSL Portal

From Second Life Wiki
Jump to navigation Jump to search


Welcome to the Second Life LSL Portal!

Returns the absolute value of the integer passed to it.

integer llAbs( integer number);

This function returns the absolute value passed to it. Basically, it removes the negative sign, on the number if there is one. If the parameter is a positive one, it just returns it

number

Any valid integer that you wish to find the absolute value of

Examples

<lsl> default {

   state_entry()
   {
       llSay(0,"The absolute value of -4 is: "+(string)llAbs(-4) );
   }

} </lsl>

Caveats

  • None at this time


Links to Helpful Resources