Patches

Clip

Clip

Clip a number so that it does not exceed the specified bounds.

For example, if an input value is 1.5, but the Max bound is set to 1, the output value will be clipped to 1.

Clip

  • Value
  • Min
  • Max
  •  

Value

A number to clip.

Min

The lowest number to allow. The output value must be greater than or equal to this number.

Max

The highest number to allow. The output value must be lower than or equal to this number.

Output

The clipped value.