Math Functions

@avg

Get the average of the specified list of integers. Numbers may be passed as part of an array, or individually as parameters. The result will be returned as a truncated integer (i.e. the result will always be rounded down).

@set(numlist, 1, 2, 3)\
@avg(numlist)
@avg(1, 2, 3)

@sum

Get the sum of the specified list of integers. Numbers may be passed as part of an array, or individually as parameters.

@set(numlist, 1, 2, 3)\
@sum(numlist)
@sum(1, 2, 3)