> ## Documentation Index
> Fetch the complete documentation index at: https://docs.launchblitz.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Math

> Numeric and comparison nodes for Scrapist graphs.

### `math.add` — Add

Adds two numbers.

**Inputs**

| Port | Kind | Type               | Structure | Notes                   |
| ---- | ---- | ------------------ | --------- | ----------------------- |
| `a`  | data | `integer`/`number` | scalar    | Runtime expects numeric |
| `b`  | data | `integer`/`number` | scalar    | Runtime expects numeric |

**Outputs**

| Port     | Kind | Type                    | Structure | Notes                                               |
| -------- | ---- | ----------------------- | --------- | --------------------------------------------------- |
| `result` | data | `number` (or `integer`) | scalar    | When configured as `integer`, the result is rounded |

### `math.subtract` — Subtract

Subtracts B from A.

**Inputs**

| Port | Kind | Type               | Structure |
| ---- | ---- | ------------------ | --------- |
| `a`  | data | `integer`/`number` | scalar    |
| `b`  | data | `integer`/`number` | scalar    |

**Outputs**

| Port     | Kind | Type                    | Structure |
| -------- | ---- | ----------------------- | --------- |
| `result` | data | `number` (or `integer`) | scalar    |

### `math.multiply` — Multiply

Multiplies two numbers.

**Inputs**

| Port | Kind | Type               | Structure |
| ---- | ---- | ------------------ | --------- |
| `a`  | data | `integer`/`number` | scalar    |
| `b`  | data | `integer`/`number` | scalar    |

**Outputs**

| Port     | Kind | Type                    | Structure |
| -------- | ---- | ----------------------- | --------- |
| `result` | data | `number` (or `integer`) | scalar    |

### `math.divide` — Divide

Divides A by B.

**Inputs**

| Port | Kind | Type               | Structure | Notes                   |
| ---- | ---- | ------------------ | --------- | ----------------------- |
| `a`  | data | `integer`/`number` | scalar    |                         |
| `b`  | data | `integer`/`number` | scalar    | Division by zero errors |

**Outputs**

| Port     | Kind | Type                    | Structure |
| -------- | ---- | ----------------------- | --------- |
| `result` | data | `number` (or `integer`) | scalar    |

### `math.clamp` — Clamp

Clamps a number into `[min, max]`.

**Inputs**

| Port    | Kind | Type               | Structure |
| ------- | ---- | ------------------ | --------- |
| `value` | data | `integer`/`number` | scalar    |
| `min`   | data | `integer`/`number` | scalar    |
| `max`   | data | `integer`/`number` | scalar    |

**Outputs**

| Port     | Kind | Type     | Structure |
| -------- | ---- | -------- | --------- |
| `result` | data | `number` | scalar    |

### `math.round` — Round

Rounds a number to a fixed number of decimals.

**Inputs**

| Port       | Kind | Type      | Structure |
| ---------- | ---- | --------- | --------- |
| `value`    | data | `number`  | scalar    |
| `decimals` | data | `integer` | scalar    |

**Outputs**

| Port     | Kind | Type     | Structure |
| -------- | ---- | -------- | --------- |
| `result` | data | `number` | scalar    |
