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

# Clamp

> Keep a number between minimum and maximum limits.

The **Clamp** action constrains a number to a range. Values below **Min** become
the minimum, values above **Max** become the maximum, and values already inside
the range stay unchanged.

## Inputs

| Input      | Type   | Required | Description                |
| ---------- | ------ | -------- | -------------------------- |
| **Number** | Number | Yes      | The value to constrain.    |
| **Min**    | Number | Yes      | The minimum allowed value. |
| **Max**    | Number | Yes      | The maximum allowed value. |

## Outputs

| Output      | Type   | Description                         |
| ----------- | ------ | ----------------------------------- |
| **Clamped** | Number | The value constrained to the range. |

For a minimum of `0` and maximum of `100`, `-5` becomes `0`, `40` stays `40`,
and `125` becomes `100`.

<Warning>
  Keep **Min** less than or equal to **Max**. Reversed bounds are applied in
  sequence and produce the maximum bound rather than a conventional range.
</Warning>
