Difference between revisions of "LIST STAT RANGE"
Jump to navigation
Jump to search
(New page: {{LSL Constant |name=LIST_STAT_RANGE |type=integer |value=0 |desc= |pa= |text= |pb= |examples |constants= <!--{{LSL ConstRow|CHANGED_SHAPE}}--> |functions= {{LSL DefineRow||[[llListStatist...) |
m (<lsl> tag to <source>) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|type=integer | |type=integer | ||
|value=0 | |value=0 | ||
|desc= | |desc=Calculates the range of the list. (max - min) | ||
|pa= | |pa= | ||
|text= | |text= | ||
|pb= | |pb= | ||
|examples | |examples=<source lang="lsl2">float range = llListStatistics( LIST_STAT_RANGE, numList );</source> | ||
<source lang="lsl2">float max = llListStatistics( LIST_STAT_MAX, numList ); | |||
float min = llListStatistics( LIST_STAT_MIN, numList ); | |||
float range = max - min;</source> | |||
|constants= | |constants= | ||
<!--{{LSL ConstRow|CHANGED_SHAPE}}--> | <!--{{LSL ConstRow|CHANGED_SHAPE}}--> |
Latest revision as of 14:59, 23 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer LIST_STAT_RANGE = 0;The integer constant LIST_STAT_RANGE has the value 0
Calculates the range of the list. (max - min)
Caveats
Related Articles
Functions
• | llListStatistics |
Examples
float range = llListStatistics( LIST_STAT_RANGE, numList );
float max = llListStatistics( LIST_STAT_MAX, numList );
float min = llListStatistics( LIST_STAT_MIN, numList );
float range = max - min;