Difference between revisions of "LlFabs"
Jump to navigation
Jump to search
m |
(spacing) |
||
Line 1: | Line 1: | ||
{{ | {{LSL Function | ||
|func=llFabs|sort=Fabs | |func=llFabs|sort=Fabs | ||
|func_id=7|func_sleep=0.0|func_energy=10.0 | |func_id=7|func_sleep=0.0|func_energy=10.0 | ||
Line 23: | Line 23: | ||
|also_functions={{LSL DefineRow||[[llAbs]]|[[integer]] version of llFabs}} | |also_functions={{LSL DefineRow||[[llAbs]]|[[integer]] version of llFabs}} | ||
|also_events | |also_events | ||
|also_articles={{LSL DefineRow||{{Wikipedia| | |also_articles={{LSL DefineRow||{{Wikipedia|Absolute value}}|}} | ||
|notes | |notes | ||
|cat1=Math | |cat1=Math |
Revision as of 13:35, 17 February 2012
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: float llFabs( float val );7 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a float that is the positive version of val.
• float | val | – | Any valid float value |
Caveats
Examples
<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
</lsl>