# Math operator nodes

<div data-with-frame="true"><figure><img src="/files/h0mZIJrjSBOizfcyOSUz" alt="" width="255"><figcaption><p>Math Node</p></figcaption></figure></div>

Math operator nodes perform mathematical calculations on numeric values in your strategy, allowing you to create dynamic allocations, calculate percentages, and perform arithmetic operations.

***

### Available Operators

Math nodes support standard arithmetic operations:

* **Addition** - Sum two or more values
* **Subtraction** - Calculate the difference between values
* **Multiplication** - Multiply values together
* **Division** - Divide one value by another
* **Floor Division - D**ivide two numbers and return the largest integer less than or equal to the result
* **Modulo** - Get the remainder of a division
* **Exponentiation -** Raise a first number to the power of the second

***

### Using Math Operators

Connect numeric values (from signals, token amounts, or other calculations) to a math operator node's inputs. Select the operation type, and the node will output the calculated result. This result can then flow to other nodes.&#x20;

Math operators are essential for creating dynamic strategies that adapt to changing conditions, such as calculating optimal allocation percentages or adjusting positions based on yield rates or liquidation treshold.


---

# 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://stazys.gitbook.io/stazys-docs/yield-studio/drag-and-drop-nodes/math-operator-nodes.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.
