Jump to content

LlFabs

From OSgrid Wiki
Revision as of 18:09, 30 December 2017 by Osgridadmin (talk | contribs) (Created page with "==Function: float llFabs( float val );== Returns a float that is the positive version of val. <br> • float val – Any valid float value <br><br> '''Examples''' <br> {|b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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