Difference between revisions of "LlAbs"

From Second Life Wiki
Jump to navigation Jump to search
m (fix)
m (fix lowercase)
Line 1: Line 1:
  {{lowercase|llFunction}}
  {{lowercase|llAbs}}
__NOTOC__
__NOTOC__
Returns the absolute value of the integer passed to it.
Returns the absolute value of the integer passed to it.

Revision as of 20:02, 24 January 2007

The correct title of this article is llAbs. The initial letter is shown capitalized due to technical restrictions.

Returns the absolute value of the integer passed to it.

Syntax

integer llAbs(integer number);

  • number may be any integer.

Specification

This function returns the absolute value of the number given to it. If the number passed is less than zero, then it will return the opposite of that number. If it is greater than or equal to zero, it will return the number given to it.

Caveats

  • None known at this time.

Examples

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

See also