Difference between revisions of "LlAbs"
Jump to navigation
Jump to search
(update example function) |
m (fix) |
||
Line 1: | Line 1: | ||
{{lowercase|llFunction}} | |||
__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 llFunction. 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) );