InRange

Check whether value is in range.

Declaration

Source position: math.pp line 196

  function InRange(const AValue: Integer; const AMin: Integer; 
                  const AMax: Integer) : Boolean;  Overload;
  function InRange(const AValue: Int64; const AMin: Int64; 
                  const AMax: Int64) : Boolean;  Overload;
  function InRange(const AValue: Double; const AMin: Double; 
                  const AMax: Double) : Boolean;  Overload;

Description

InRange returns True if AValue is in the range AMin..AMax. It returns False if Value lies outside the specified range.

See also

Name Description
EnsureRange Change value so it fits in a specified range.