# Math Helper

ZBrain helps you connect Math Helper with your AI apps to automate your work and enable faster computations.

Math Helper is used to perform mathematical operations.

1. **Addition**: Adds the first number to the second number.
2. **Division**: Divides the first number by the second number.
3. **Generate Random Number**: Generates a random number between two specified values (inclusive).
4. **Modulo**: Returns the remainder when the first number is divided by the second number.
5. **Multiplication**: Multiplies the first number by the second number.
6. **Subtraction**: Subtracts the second number from the first number.

### **How to Connect Math Helper to ZBrain Flow?** <a href="#how-to-connect-math-helper-to-zbrain-flow" id="how-to-connect-math-helper-to-zbrain-flow"></a>

To integrate Math Helper with ZBrain Flow, follow these steps to select and utilize the desired capabilities:

1. **Search for the Math Helper Component**: Search the Math Helper component within the ZBrain interface.
2. **Select the Required Capability**:

**Addition**: Adds the first number to the second number.

**Division**: Divides the first number by the second number.

1. **Division**: Divides the first number by the second number.
2. **Generate Random Number**: Generates a random number between two specified values (inclusive).
3. **Modulo**: Returns the remainder when the first number is divided by the second number.
4. **Multiplication**: Multiplies the first number by the second number.
5. **Subtraction**: Subtracts the second number from the first number.

### **Additional Settings for Mathematical Operations**  <a href="#additional-settings-for-mathematical-operations" id="additional-settings-for-mathematical-operations"></a>

#### For all supported mathematical operations these fields and settings are applicable.  <a href="#for-all-supported-mathematical-operations-these-fields-and-settings-are-applicable" id="for-all-supported-mathematical-operations-these-fields-and-settings-are-applicable"></a>

* **First Number**: Input the first numeric value for the mathematical operation.
* **Second Number**: Input the second numeric value for the mathematical operation.


---

# 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.zbrain.ai/zbrain-documentation/zbrain-builder/zbrain-ai-agents/creating-custom-ai-agents/define-flow/math-helper.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.
