LSL Wiki Mirror 7-7-7 : llAbs

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
integer llAbs(integer val)

Returns the absolute value of val. The absolute value of a number is its positive value. To put it another way, the absolute value is the distance of the number from 0 on the number line.

Examples of arguments:
valreturn value
-44
-33
22
11

Basically, it kills off the negative sign of an integer.

Note: llAbs works for integers. To determine the absolute value of a float, use llFabs.


Functions | Math
There is no comment on this page. [Display comments/form]