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

LSL Wiki : llAbs

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


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]
Attach a comment to this page: