# Math Operations

> Perform addition, subtraction, multiplication, division, modulo and exponent operations.

- ID: `general_math_operations`
- Type: Block
- Category: [Math](https://inventor.bot/docs/reference/blocks/math.md)

- Value block: it can be used directly inside expressions, e.g. `"Result: " + general_math_operations(Args{...})`.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `value_1` | yes | First numeric value. | e.g. `"5"` |
| `operation` | yes | Math operation to perform. | `"+ (addition)"`, `"- (subtraction)"`, `"÷ (division)"`, `"× (multiplication)"`, `"% (modulo)"`, `"^ (exponent)"` |
| `value_2` | yes | Second numeric value. | e.g. `"3"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `result` | Result of the math operation. | e.g. `"8"` |

**Example**

```go
sum := 5 + 3
send_text_message(Args{channel_id: trigger.channel_id, message_content: "Result: " + sum})
```