- :integer
- :floating
clamp
force value within given range
Parameters
clamp number :integer :floating min :integer :floating max :integer :floating
Returns
Examples
copyclamp 2 1 3 ; 2 clamp 0 1 3 ; 1 clamp 4 1 3 ; 3
clamp number :integer :floating min :integer :floating max :integer :floating
copyclamp 2 1 3 ; 2 clamp 0 1 3 ; 1 clamp 4 1 3 ; 3