> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/functions/math.clamp.md).

# math.clamp

> **clamp**(`value`, `min`, `max`): `number`

Limits a value to a range.

### Parameters

#### value

`number`

The value.

#### min

`number`

The minimum.

#### max

`number`

The maximum.

### Returns

`number`
