Difference between revisions of "LIST STAT RANGE"

From Second Life Wiki
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 15:59, 23 January 2015