RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.InRange Function

Indicates whether a value falls within a specified range.

Pascal
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;
C++
Boolean InRange(const int AValue, const int AMin, const int AMax);
Boolean InRange(const Int64 AValue, const Int64 AMin, const Int64 AMax);
Boolean InRange(const Double AValue, const Double AMin, const Double AMax);

Math

InRange returns true if AValue is greater than or equal to AMin and less than or Equal to AMax. It returns false if AValue is less than AMin or greater than AMax. 

 

VarInRange 

EnsureRange

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!