LlAbs

From Second Life Wiki
Revision as of 16:10, 24 January 2007 by Danger Pugilist (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

llAbs - Returns the absolute value of the integer passed to it

Syntax:

integer llAbs( integer val);

Full Functional Description:

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

Parameters:

  • val - This is a number that you want to find the absolute value of.


Examples:

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


Caveats:

  • None known at this time.