Difference between revisions of "Average"
(jrfconvert import) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{HelpFiles}} | |
− | | ||
− | ====average==== | + | ==== average ==== |
− | Gets | + | Gets double values for row values of the column and calculates the average value of those values. |
− | + | Returns empty if there is no valid rows | |
− | + | '''Syntax''' | |
− | '' | + | average(''columnName'') |
− | '' | + | '''Arguments''' |
− | '' | + | ''columnName'': Is the name of a column in the data table. |
− | + | '''Return type''' | |
− | + | number or empty | |
− | + | '''Examples''' | |
− | // | + | //get the average score of all students |
− | number a = average( | + | number a = average(Score) where (true); |
− | + | print(a); | |
− | '''Availability''' | + | '''Availability''' |
− | Version 4.8 | + | Version 4.8 __NOTOC__ <!-- imported from file: 758.htm--> |
− | __NOTOC__ | + | |
− | <!-- imported from file: | + | [[Category:Functions_Used_in_where_Expressions]] |
Latest revision as of 11:33, 20 December 2011
average
Gets double values for row values of the column and calculates the average value of those values.
Returns empty if there is no valid rows
Syntax
average(columnName)
Arguments
columnName: Is the name of a column in the data table.
Return type
number or empty
Examples
//get the average score of all students
number a = average(Score) where (true);
print(a);
Availability
Version 4.8