Clamps number within the inclusive lower and upper bounds.
number to check
lower bound
Optional
upper bound
clamped number
clamp(-10, -5, 5);// => -5clamp(10, -5, 5);// => 5 Copy
clamp(-10, -5, 5);// => -5clamp(10, -5, 5);// => 5
Clamps number within the inclusive lower and upper bounds.