System.Math.Min
Delphi
function Min(const A, B: ShortInt): ShortInt;
function Min(const A, B: Byte): Byte;
function Min(const A, B: SmallInt): SmallInt;
function Min(const A, B: Word): Word;
function Min(const A, B: Integer): Integer;
function Min(const A, B: Cardinal): Cardinal;
function Min(const A, B: Int64): Int64;
function Min(const A, B: UInt64): UInt64;
function Min(const A, B: Single): Single;
function Min(const A, B: Double): Double;
function Min(const A, B: Extended): Extended;
function Min(const A, B: Currency): Currency;
C++
extern DELPHI_PACKAGE System::Int8 __fastcall Min(const System::Int8 A, const System::Int8 B)/* overload */;
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
| function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
Beschreibung
Gibt den kleineren von zwei numerischen Werten zurück.
Mit Min vergleichen Sie zwei numerische Werte. Min gibt den kleineren Wert zurück.
In Delphi können Sie bis zu sechs verschiedene Datentypen für B verwenden. Beachten Sie, dass der Datentyp von B den Datentyp des zurückgegebenen Werts festlegt.