System.Math.Max
提供: RAD Studio API Documentation
Delphi
function Max(const A, B: Integer): Integer; function Max(const A, B: Int64): Int64; function Max(const A, B: UInt64): UInt64; function Max(const A, B: Single): Single; function Max(const A, B: Double): Double; function Max(const A, B: Extended): Extended;
C++
extern DELPHI_PACKAGE int __fastcall Max(const int A, const int B)/* overload */;
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
説明
2 つの数値の大きい方を返します。
Max を呼び出すと、 2 つの数値が比較されます。Max は、2 つの入力引数 A と B のうち、大きい方を返します。
Delphi では、B に対して、6 つまで異なるデータ型を使用することができます。B のデータ型は、戻り値のデータ型を決定します。