Clamps a value to a numeric range.
- When
(<= n min)
, returnsmin
. - When
(>= n max)
, returnsmax
. - Otherwise, returns
n
.
When (> min max)
, it's an error.
Clamps a value to a numeric range.
(<= n min)
, returns min
.(>= n max)
, returns max
. n
.When (> min max)
, it's an error.