Difference between revisions of "LlAbs"
Jump to navigation
Jump to search
Gigs Taggart (talk | contribs) |
|||
Line 2: | Line 2: | ||
|func=llAbs | |func=llAbs | ||
|sort=Abs | |sort=Abs | ||
|func_id=6 | |func_id=6|func_sleep=0.0|func_energy=10.0 | ||
|func_sleep=0.0 | |||
|func_energy=10.0 | |||
|func_footnote | |func_footnote | ||
|p1_type=integer | |p1_type=integer | ||
|p1_name=val | |p1_name=val | ||
|p1_desc=Any integer value | |p1_desc=Any integer value | ||
|return_type=integer | |return_type=integer | ||
|return_text=that is the positive version of val. | |return_text=that is the positive version of val. | ||
|spec | |spec | ||
|caveats | |caveats | ||
|examples= | |examples=<pre> | ||
<pre> | |||
default | default | ||
{ | { | ||
Line 39: | Line 25: | ||
|also_articles | |also_articles | ||
|also_footer | |also_footer | ||
|also_functions= | |also_functions={{LSL DefineRow||{{LSLG|llFabs}}|{{LSLG|float}} version of llAbs}} | ||
|also_events | |also_events | ||
|also_articles= | |also_articles={{LSL DefineRow||{{Wikipedia|Absolute_value}}|}} | ||
|notes | |notes | ||
|cat1=Math | |||
|cat2 | |||
|cat3 | |||
|cat4 | |||
}} | }} | ||
Revision as of 18:37, 22 February 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llAbs( integer val );6 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer that is the positive version of val.
• integer | val | – | Any integer value |
Caveats
Examples
default { state_entry() { llSay(0,"The absolute value of -4 is: "+(string)llAbs(-4) ); } }