# Math

{% hint style="warning" %}
For nodes that specifically relate to floating point data types, see [mathf](https://docs.engagevr.io/developer/afx/node-dictionary/variable/math/mathf "mention").
{% endhint %}

## Add

Adds two values together.

**Inputs:**

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>A</td><td>Float or Int</td><td>The first value to add.</td></tr><tr><td>B</td><td>Float or Int</td><td>The second value to add.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>Output</td><td>Float or Int</td><td>The result of <code>A</code> + <code>B</code>.<br><br>The type of the output matches the input.</td></tr></tbody></table>

## Divide

Divides a number by another number.

**Inputs:**

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>A</td><td>Float or Int</td><td>The value to be divided.</td></tr><tr><td>B</td><td>Float or Int</td><td>The value to divide by.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>Output</td><td>Float or Int</td><td>The result of <code>A</code> / <code>B</code>.<br><br>The type of the output matches the input.</td></tr></tbody></table>

## Modulo

The remainder after `A` is divided by `B`.

**Inputs:**

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>A</td><td>Float or Int</td><td>The value to be divided.</td></tr><tr><td>B</td><td>Float or Int</td><td>The value to divide by.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>Output</td><td>Float</td><td>The remainder after the division operation.</td></tr></tbody></table>

## Multiply

Multiplies two values together.

**Inputs:**

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>A</td><td>Float or Int</td><td>A value to multiply.</td></tr><tr><td>B</td><td>Float or Int</td><td>A value to multiply.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>Output</td><td>Float or Int</td><td>The result of <code>A</code> x <code>B.</code></td></tr></tbody></table>

## Subtract

Subtracts one value from another.

**Inputs:**

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>A</td><td>Float or Int</td><td>The value to subtract from.</td></tr><tr><td>B</td><td>Float or Int</td><td>The value to subtract.</td></tr></tbody></table>

**Outputs:**

<table><thead><tr><th width="172">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>Output</td><td>Float or Int</td><td>The result of <code>A</code> - <code>B</code>.</td></tr></tbody></table>
