Calculates the average of the values in an array.
All elements in the array must contain values that can be automatically converted to numeric.
Lucee Function Reference
arrayavg()
Example
arrayavg(array array):number
Category
array
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
array | array | Yes | The array to calculate the average values from |