Skip to main content

Aggregation

Total, average, median, smallest and largest

FunctionWhat it does
maxThe largest element. Takes one array, where math.Max takes two numbers
meanThe average of the elements, always a decimal
medianThe middle value; the average of the middle two when the count is even
minThe smallest element. Takes one array, where math.Min takes two numbers
sumThe total of the elements; stays an integer when they all are