Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function ARRAYAVG

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

Example

arrayavg(array array):number

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