# array.avg()

Calculates the average of the values in an array.
All elements in the array must contain values that can be automatically converted to numeric.

```
array.avg( )
```

**Returns:** number

*This function does not take any arguments.*

# Examples

```1
	numbers  = [ 1, 2, 3, 4 ];
	avgValue = numbers.Avg(  );
	Echo( avgValue ); // outputs 2.5
```

# Categories

[Arrays](../../../categories/array.md)

# See Also

[ArrayAvg()](../../functions/arrayavg.md), [Array](../array.md)