Returns the average value of a byte array.
var = AVG( ar(1) )
Numeric variable that will be assigned with the lowest value of the array.
The first array element of the array to return the lowest value of.
At the moment AVG() works only with BYTE arrays.
Support for other data types will be added too.
Dim ar(10) As Byte
Dim bP as Byte
For bP = 1 to 10
ar(bP) = bP
bP = Avg(ar(1))