Math Functions

Math functions help you aggregate, compare, and round numeric values.

FunctionDescriptionExamples
SUMSum of the argumentsSUM(1, 2, 3) → 6
AVERAGEAverage of the argumentsAVERAGE(1, 2, 3, 4) → 2.5
COUNTCount numbersCOUNT(1, 2, 3) → 3
MAXMaximum valueMAX(1, 5, 3) → 5
MAX(-5, -1, -10) → -1
MINMinimum valueMIN(1, 5, 3) → 1
MIN(-5, -1, -10) → -10
ROUNDRound to specified decimal placesROUND(3.14159, 2) → 3.14
ROUND(2.5) → 3
ROUND(2.4) → 2
ROUNDUPRound up to specified decimal placesROUNDUP(3.14159, 2) → 3.15
ROUNDUP(2.1) → 3
ROUNDDOWNRound down to specified decimal placesROUNDDOWN(3.14159, 2) → 3.14
ROUNDDOWN(2.9) → 2
ABSAbsolute valueABS(-5) → 5
ABS(5) → 5
Math Functions - TemplateDocs Documentation