Afficher : Delphi
C++
Préférences d'affichage
System.Math.InRange
De XE2 API Documentation
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 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.