float llFabs(float num)
Returns the absolute
value of a
float. The absolute value of a number is its "
distance" from 0. To put it another way, if
val is positive or 0,
llFabs returns
val. If
val is negative,
llFabs returns
val * -1.
Examples of
arguments:
num | return value |
-4.0 | 4.0 |
-3.75 | 3.75 |
2.34 | 2.34 |
1.203 | 1.203 |
Basically, it kills off the negative
sign of a float. To have this functionality for
integers, it is recommended using
llAbs instead.
This article wasn't helpful for you? Maybe the
related article at the LSL Portal is able to bring enlightenment.
Functions |
Math