LlFabs
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Contents |
Summary
Function: float llFabs( float val );| 7 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Returns a float that is the positive version of val.
| • float | val | – | Any valid float value |
Examples
default { state_entry() { llSay(0,"The (Float)absolute value of -4.5 is: "+(string)llFabs(-4.5) ); } } // returns : // The (Float)absolute value of -4.5 is: 4.500000
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

