beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

Clamp Op

Ops.Math.Clamp


Clamp
Namespace: Ops.Math

Op author: pandur

Makes sure a value is within range cuts off the rest


summary (oneliner)



doc

issues

youtube id

caniuse query

collections

related ops

Inputs

val (Number)

The number you want to make sure is in range [Minimum, Maximum]


min (Number)

The minimum the Result will be


max (Number)

The maximum the Result will be


ignore outside values (boolean /Number)

Outputs

result (Number)

The clamped value of Val


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

Examples using Clamp ()

Public Patches using Clamp ()