ArrayAvg
Last updated
Was this helpful?
Return length of array
ArrayAvg(array=[Array])array
Array
true
The array whose elements will be averaged.
Uses the arrayAvg function to get average value of an array
numberArray = [
1,
2,
3
];
writeOutput( arrayAvg( numberArray ) );
Result: 2
Uses the avg member function is the same as running arrayAvg.
Result: 2
Last updated
Was this helpful?
Was this helpful?
numberArray = [
1,
2,
3
];
writeOutput( numberArray.avg() );
numbers = [
1,
2,
3,
4
];
avgValue = ArrayAvg( numbers );
Echo( avgValue );
// outputs 2.5
