FT_AAVG() Average numeric values in an array Syntax FT_AAVG( <aArray> [, <nStartIndex> [, <nEndIndex> ] ] ) -> nAverage Arguments <aArray> is the array containing the elements to be averaged. <nStartIndex> is the first array item to include, defaults to first element. <nEndIndex> is the last array element to include, defaults to all elements. Returns The average of the specified array elements. Description This function is used to get a numeric average of selected or all elements of an array. This routine requires FT_ASUM(). Examples FT_AAVG(aSubTotals) // Get Average of Entire Array FT_AAVG(aSubTotals, 5) // Get Average of 5th Element On FT_AAVG(aSubTotals, , 10) // Get Average of 1st 10 Elements FT_AAVG(aSubTotals, 5, 10) // Get Average of Elements 5-10 Source: AAVG.PRG Author: David Husnian
Pingback: FT Functions | Viva Clipper !
Pingback: FT Array Functions | Viva Clipper !
Pingback: NanForum Toolkit | Viva Clipper !