System.Math.InRange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function InRange(const AValue, AMin, AMax: Integer): Boolean;
function InRange(const AValue, AMin, AMax: Int64): Boolean;
function InRange(const AValue, AMin, AMax: UInt64): Boolean;
function InRange(const AValue, AMin, AMax: Single): Boolean;
function InRange(const AValue, AMin, AMax: Double): Boolean;
function InRange(const AValue, AMin, AMax: Extended): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall InRange(const int AValue, const int AMin, const int AMax)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

Indicates whether a value falls within a specified range.

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.

See Also