The clamp function (clamp) restricts a number to a specified range between a minimum and maximum value. The minimum and maximum values are automatically swapped if they are reversed.
Interface
Inputs
| Parameter | Details | Possible Types |
|---|---|---|
| Value | The number to be clamped, which is restricted to the range between the minimum and maximum values. Primary Input | f32f64stringu32 |
| Min | The left (smaller) side of the range. The output is never less than this number. Default: | f32f64stringu32 |
| Max | The right (greater) side of the range. The output is never greater than this number. Default: | f32f64stringu32 |
Outputs
| Product | Details | Possible Types |
|---|---|---|
| Result | The value produced by the node operation. Primary Output | f64f32u32string |