System.Math.InRange
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 */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Description
Indique si une valeur appartient à l'intervalle spécifié.
La fonction InRange renvoie true si AValue est supérieur ou égal à AMin et inférieur ou égal à AMax. Elle renvoie false si AValue est inférieure à AMin ou supérieure à AMax.