> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/strategies/tokens/using-the-math-token-for-mathematical-calculations.md). Agents can also search and read this documentation through its [MCP server](https://docs.sprinthub.com/~gitbook/mcp).

# Using the {math=} Token for Mathematical Calculations

The system now has a new feature, the {math=} token, which allows automatic mathematical operations directly in your texts, messages, and automations.

#### How does it work?

Just use the {math=} token followed by the operation you want to perform. The system processes the calculation and returns the result automatically.

**Examples:**

* `{math=1 + 1}` → 2
* `{math=(10 + 30) * 2}` → 80
* `{math={contactfield=id} * 2}` → returns the lead's ID field value multiplied by 2

#### Available operators:

You can use the main mathematical operators:

* Addition: +
* Subtraction: -
* Multiplication: \*
* Division: /
* Use of parentheses for priority: ()<br>

Be careful with decimal numbers

The system does not recognize commas in numbers. Always use a period (.) as the decimal separator.

**Incorrect example:**

`{math=1.000,32 + 10}` → Error

**Correct example:**\
\
`{math=1000.32 + 10}` → 1010.32

#### Where to use

This token is useful in various contexts, such as:

* Automatic calculations with lead data
* Dynamic messages with personalized values
* Number-based conditional logic automations

#### Conclusion

With the {math=} token, you have more flexibility and intelligence in your automations. Try different formulas and make your communications even more precise and automated!

<br>
