CLAMP
Clamps a value to the range [min, max]. Returns min if value < min, max if value > max, otherwise value. Comparison uses SI values; result preserves the original unit.
| Category | Engineering |
| Syntax | CLAMP(value, min, max) |
Parameters
| Parameter | Required | Description |
|---|---|---|
value | Required | The value to clamp. |
min | Required | The lower bound. |
max | Required | The upper bound. |
Example
CLAMP(value, min, max)
Auto-generated from the EngCanvas function registry.