Difference between revisions of "LlAbs"

From Second Life Wiki
Jump to navigation Jump to search
 
m (LlAbs moved to LSL Function llAbs: Get rid of the first capital letter)
(No difference)

Revision as of 17:13, 24 January 2007

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.