Don't click here unless you want to be banned.

LSL Wiki : llFabs

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl801.us.archive.org
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.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Math
Comments [Hide comments/form]