Jump to content

LlFabs

From OSgrid Wiki

Function: float llFabs( float val );

Returns a float that is the positive version of val.
• float val – Any valid float value

Examples

<source lang="lsl">

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 </source>


See Also
Functions
• llAbs – integer version of llFabs
Articles
• Wikipedia:Absolute_value