LSL Wiki Mirror 10-5-2006: llFabs

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
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:
numreturn value
-4.04.0
-3.753.75
2.342.34
1.2031.203

Basically, it kills off the negative sign of a float. To have this functionality for integers, it is recommended using llAbs instead.


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