clampNumber
Clamps num
within the inclusive range specified by the boundary values a
and b
.
- If
num
falls within the range, returnnum
. - Otherwise, return the nearest number in the range.
Clamps num
within the inclusive range specified by the boundary values a
and b
.
num
falls within the range, return num
.