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:
val | return value |
-4 | 4 |
-3 | 3 |
2 | 2 |
1 | 1 |
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.
This article wasn't helpful for you? Maybe the
related article at the LSL Portal is able to bring enlightenment.
Functions |
Math