Difference between revisions of "LlAbs"
Jump to navigation
Jump to search
m |
|||
Line 25: | Line 25: | ||
|caveats | |caveats | ||
|examples= | |examples= | ||
< | <pre> | ||
default | default | ||
{ | { | ||
Line 33: | Line 33: | ||
} | } | ||
} | } | ||
</ | </pre> | ||
|helpers | |helpers | ||
|also_functions=* {{LSLG|llFabs}} | |also_header | ||
|also_tests | |||
|also_articles | |||
|also_footer | |||
|also_functions=* {{LSLG|llFabs}} - {{LSLG|float}} version of llAbs | |||
|also_events | |||
|also_articles=* [http://en.wikipedia.org/wiki/Absolute_value Wikipedia - Absolute value] | |also_articles=* [http://en.wikipedia.org/wiki/Absolute_value Wikipedia - Absolute value] | ||
|notes | |notes |
Revision as of 10:36, 13 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) ); } }