Clamp Op

Clamp

Makes sure a value is within range cuts off the rest



Edit Documentation

Full Name
  • Ops.Math.Clamp
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorTest Patches


 

INPUT PORTS


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 (Number:boolean )

OUTPUT PORTS


result (Number)

The clamped value of Val


Patches using Clamp

  • Examples
  • Public
  • My Patches