Clamp integer
DataTarget independent
math.integer-clampClamps an integer between minimum and maximum while preserving its type.
Example use
For example, clamp 120 to 0–100 to get 100; inputs and result remain integers for counts or indexes.
Node preview
Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.
Loading node preview…
Data inputs 3
- Value
valueInteger The value operated on; supply structured data of the type shown and see the node description for its role.
Default availableDefault:0- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Minimum
minimumInteger The lower bound of the value range.
Default availableDefault:0- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Maximum
maximumInteger The upper bound of the value range.
Default availableDefault:100- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042
Data outputs 1
- Result
resultInteger The result of this data operation, with its type determined by the matching inputs.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042
Version and node identity
Version 1.0.0
sha256:a05cdf761dbd71b2b5712c815c6ef3212a80930f318e91e429fc1d9e2647dd88