# Math Functions

<table><thead><tr><th width="224">NAME</th><th width="244">SYNTAX</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><a href="/pages/oRnhR4fnA1OJMgLsnUCd">SUM</a></td><td>SUM(value1,… valueN?) - > number</td><td>Adds all the numbers in the arguments, which can be numbers or node references</td></tr><tr><td><a href="/pages/7ZVJyaAvEiWirK6nQQiM">SUBTRACT</a></td><td>SUBTRACT(value1,… valueN?) - > number</td><td>Subtracts all the values in the arguments, which can be numbers or node references</td></tr><tr><td><a href="/pages/MFOnmLUnZUJsH16xJnV7">PRODUCT</a></td><td>PRODUCT(value1,… valueN?) - > number</td><td>Multiplies all the values in the arguments</td></tr><tr><td><a href="/pages/M8eUUlMFRK1Pt5z1KY6f">DIVISION</a></td><td>DIVISION(value1,… valueN?) - > number</td><td>Divides all the values in the arguments</td></tr><tr><td><a href="/pages/FuBm5qK9CA1Tib5C7mjo">AVERAGE</a></td><td>AVERAGE(value1,...valueN?) - > number</td><td>Returns the average (arithmetic mean) of its arguments, which can be numbers or node references</td></tr><tr><td><a href="/pages/OBIu3cq6DR9mUDKnPMwx">AVERAGEEXZERO</a></td><td>AVERAGEEXZERO(value1,...valueN?) - > number</td><td>Returns the average (arithmetic mean) of its arguments excluding zeros, which can be numbers or node references</td></tr><tr><td><a href="/pages/maML9rFUUbsZlWwc6HT9">AVERAGEEXNEG</a></td><td>AVERAGEEXNEG(value1,...valueN?) - > number</td><td>Returns the average (arithmetic mean) of its arguments excluding negatives, which can be numbers or node references</td></tr><tr><td><a href="/pages/ABIJGFjRZa3zwQ58wvLO">AVERAGEEXZERONEG</a></td><td>AVERAGEEXZERONEG (value1,...valueN?) - > number</td><td>Returns the average (arithmetic mean) of its arguments excluding zeros and negatives, which can be numbers or node references</td></tr><tr><td><a href="/pages/ONSV1feoPRsMW6OzB5qx">COUNT</a></td><td>COUNT(value1,...valueN?) - > number</td><td>Counts the number of items in a range</td></tr><tr><td><a href="/pages/L4DAMf9eAU18ep4DhRZX">ABS</a></td><td>ABS(value) - > number</td><td>Returns the absolute value of a number, a number without its sign</td></tr><tr><td><a href="/pages/w4DLuQNZDW6TfKzCPe3O">MIN</a></td><td>MIN(value1,...valueN?) - > number</td><td>Returns the smallest number in a set of values. Node references are also accepted as arguments</td></tr><tr><td><a href="/pages/tdMEatsHZjmDkBiatZ28">MAX</a></td><td>MAX(value1,...valueN?) - > number</td><td>Returns the largest number in a set of values. Node references are also accepted as arguments</td></tr><tr><td><a href="/pages/HZZ94QlCPupd25oBj5xQ">POWER</a></td><td>POW(value,power) - > number</td><td>Returns the result of a number raised to a power</td></tr><tr><td><a href="/pages/KO3zGKwInwASINAZNi7Y">SQRT</a></td><td>SQRT(value) - > number</td><td>Returns the square root of a number</td></tr><tr><td><a href="/pages/J4RZ4lWgbqLcIWdsuNMD">EXP</a></td><td>EXP(value) - > number</td><td>Returns e raised to the power of a given number</td></tr><tr><td><a href="/pages/a6vp8QBbRa9cw3F8SAo0">LOG</a></td><td>LOG(value,base) - > number</td><td>Returns the logarithm of a number to the base you specify</td></tr><tr><td><a href="/pages/PPE2KFetGWJcaCKC5mlj">ROUND</a></td><td>ROUND(value) - > number</td><td>Returns the rounded value of the specified node, number</td></tr><tr><td><a href="/pages/IPlutwf3GM5VqxyLh6sC">FLOOR</a></td><td>FLOOR(value) - > number</td><td>Returns the rounded down value of the specified node, number</td></tr><tr><td><a href="/pages/yJJLR9iJOos8PQ9ef1E3">CEILING</a></td><td>CEIL(value) - > number</td><td>Returns the rounded up value of the specified node, number</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.valq.com/model/formula-functions/math-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
