Skip to content

Clamp

Pure

Clamps the input value between a minimum and maximum.

Pure Function
Yes

Execute Inputs

Execution

INPUT

Execution Input.

Data Inputs

Value

INPUT

The value to clamp.

Min

INPUT

The minimum allowed value.

Max

INPUT

The maximum allowed value.

Data Outputs

Result

OUTPUTdouble

The clamped result.

Multiple

Settings

Return Type

STRING

Specifies the numeric return type: DEFAULT, INT, LONG, FLOAT, or DOUBLE.

Default: DEFAULT
Options:
DEFAULTINTLONGFLOATDOUBLE

Debug

STRING

Break on node when executing.

Default: No
Options:
NoBeforeInputsBeforeProcessingAfterProcessing