System.Math.Min
Delphi
function Min(const A, B: Integer): Integer;
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;
C++
extern DELPHI_PACKAGE int __fastcall Min(const int A, const int B)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
説明
2 つの数値の小さい方を返します。
Min を呼び出すと、 2 つの数値が比較されます。 Min は、2 つのうち、より小さい値を返します。
Delphi では、B
に対して、6 つまで異なるデータ型を使用することができます。 B
のデータ型は、戻り値のデータ型を決定します。