Back to documentation

Clamp

Clamps the provided value (number) to the provided interval.

Returns the provided value if it is greater than or equal to the minimum value in the interval and less than or equal to the maximum value in the interval. Otherwise it will return one of the minimum value and the maximum value.

Information

Group: Math
Plan: Personal
Return type:
number

Parameters

ParameterTypeDefaultExpressions
Value
number
0
Yes
Min
number
0
Yes
Max
number
1
Yes