beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Clamp
Ops.Math.Clamp
Namespace: Ops.Math
Makes sure a value is within range cuts off the rest

summary (oneliner)

doc

issues

youtube id

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

Credits


Examples using Clamp

Public Patches using Clamp