Skip to main content

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.

CategoryEngineering
SyntaxCLAMP(value, min, max)

Parameters

ParameterRequiredDescription
valueRequiredThe value to clamp.
minRequiredThe lower bound.
maxRequiredThe upper bound.

Example

CLAMP(value, min, max)

Auto-generated from the EngCanvas function registry.