avg
This block is part of the array group and was last modified in core v10.4.28.
avg v10.4.28 Returns the avarage number in the given array of numbers.
In pins 1
- Array required
arrayArray with numbers.
Out pins 1
- Number
numberThe average number of the numbers in the given array.
Outputs the numeric sum of the array divided by the TOTAL item count. Emits 0 when the array is empty, missing, or its FIRST item is not numeric; later non-numeric items count as 0 yet still enlarge the divisor. Numeric strings and booleans coerce (true=1).
average |
mean |
A typical wiring for avg: the number out pin feeds cast to value.

Version history
Introduced in v10.4.28.
Back to
array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group
