clamp

force value within given range


Parameters

clamp number :integer :floating
      min :integer :floating
      max :integer :floating

Returns

  • :integer
  • :floating

Examples

copy
clamp 2 1 3 ; 2 clamp 0 1 3 ; 1 clamp 4 1 3 ; 3

Related