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

Clamp
op id:cda1a98e-5e16-40bd-9b18-a67e9eaad5a1
Makes sure a value is within range cuts off the rest

summary (oneliner)

doc

youtube id

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


Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using Clamp

Public Patches using Clamp