# float CLAMP(float, float, float)

[Family: Global](/imperivm/en/CKS/familias/global/)

## Exact signature

```text
float CLAMP(float, float, float)
```

## Description

Limits a value to the supplied lower and upper bounds.

## Parameters and return type

**Return type:** `float`

| Position | Type |
| --- | --- |
| 1 | `float` |
| 2 | `float` |
| 3 | `float` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`int CLAMP(int, int, int)`](/imperivm/en/CKS/reference/api-1d905f1e12ac0b/)

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-de8fd1876fda9f.md)
- [JSON](/imperivm/CKS/api/entries/api-de8fd1876fda9f?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
