Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

ArrayAvg

Return length of array

Method Signature

ArrayAvg(array=[Array])

Arguments

Argument
Type
Required
Description
Default

array

Array

true

The array whose elements will be averaged.

Examples

Average value of an array

Uses the arrayAvg function to get average value of an array

numberArray = [ 
	1,
	2,
	3
];
writeOutput( arrayAvg( numberArray ) );

Result: 2

Average value of an array using the Array member function

Uses the avg member function is the same as running arrayAvg.

Result: 2

Additional Examples

Last updated

Was this helpful?