中文
Node Documentation

Clamp integer

DataTarget independentmath.integer-clamp

Clamps 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

ValuevalueInteger

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
0
42
MinimumminimumInteger

The lower bound of the value range.

Default availableDefault: 0
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
MaximummaximumInteger

The upper bound of the value range.

Default availableDefault: 100
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42

Data outputs 1

ResultresultInteger

The result of this data operation, with its type determined by the matching inputs.

  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42
Version and node identity

Version 1.0.0

sha256:a05cdf761dbd71b2b5712c815c6ef3212a80930f318e91e429fc1d9e2647dd88