Difference between revisions of "LlFabs"
Jump to navigation
Jump to search
Gigs Taggart (talk | contribs) m (LSL llFabs moved to LlFabs) |
|||
Line 3: | Line 3: | ||
|func_id=7|func_sleep=0.0|func_energy=10.0 | |func_id=7|func_sleep=0.0|func_energy=10.0 | ||
|func_footnote | |func_footnote | ||
|p1_type=float | |p1_type=float|p1_name=val|p1_desc=Any valid float value | ||
|p1_name=val | |||
|p1_desc=Any valid float value | |||
|return_type=float | |return_type=float | ||
|return_text=that is the positive version of '''val'''. | |return_text=that is the positive version of '''val'''. | ||
Line 32: | Line 19: | ||
</pre> | </pre> | ||
|helpers | |helpers | ||
| | |also_functions={{LSL DefineRow||{{LSLG|llAbs}}|{{LSLG|integer}} version of llFabs}} | ||
|also_events | |||
|also_articles= | |also_articles={{LSL DefineRow||{{Wikipedia|Absolute_value}}|}} | ||
|notes | |notes | ||
|cat1=Math | |cat1=Math |
Revision as of 18:38, 22 February 2007
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
default { state_entry() { llSay(0,"The absolute value of -4.5 is: "+(string)llFabs(-4.5) ); } }