Skip to content

Clamp ​

The Clamp node calculates limits the input Float number to the interval defined by the numbers Min and Max. More specifically, if x is the input number, then result = Min if x <= Min, result = Max if x >= Max, and result = x if Min < x < Max.

Inputs and Outputs ​

Inputs:

  • Value (Float): a Float value.
  • Min (Float): the lower bound of the clamping interval.
  • Max (Float): the upper bound of the clamping interval.

Outputs:

  • Output (Float): a Float value.