Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > L

LAVG

Scroll Prev Top Next More

(LAVG(list))

 

Returns the average of the values in list. Values in a list can be a CURRENCY, DOUBLE, REAL, INTEGER, NUMERIC, DATE, or TIME data type. The function LAVG is not the same as the function AVG, which is used only with the SELECT command.

 

In the following example, the value of vlavg is 5. The total of the list is 20, which is divided by 4, the number of values in the list.

 

SET VAR vlavg = (LAVG(2,4,6,8))