<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > STAT (Statistical module) > Stat_Count |
Description
Returns the number of occurrences of a specific number inside a given array.
Syntax
n = STAT_Count(ArrayVariable, MyNumber)
Returns
Number. The number of occurrences of MyNumber inside ArrayVariable.
Parameters
Name |
Type |
Optional |
Meaning |
ArrayVariable |
Numeric Array |
No |
The array containing data |
MyNumber |
Number |
No |
A numeric expression representing the number you want to count |
Remarks
This function will expect the name of a predefined array with all the necessary data already loaded.
Restrictions
See also
Examples