Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TCplx Max(TCplx X, TCplx Y) | Maximum of two numbers. |
| 2 | TSCplx Max(TSCplx X, TSCplx Y) | |
| 3 | Double Max(Double X, Double Y) | Maximum of two real numbers X and Y. |
| 4 | Double Max(Double X, Int32 Y) | |
| 5 | Double Max(Int32 X, Double Y) | Mixed integer/double Max/Min. |
| 6 | Int32 Max(Int32 X, Int32 Y) | Maximum of two integer numbers X and Y. |
| 7 | Int64 Max(Int32 X, Int64 Y) | |
| 8 | Int64 Max(Int64 X, Int32 Y) | Mixed 64/32-bit integer Max/Min. |
| 9 | Int64 Max(Int64 X, Int64 Y) | Maximum of two 64bit integer numbers X and Y. |
| 10 | Single Max(Single X, Single Y) | |
| 11 | Single Maxf(Single X, Single Y) |
Overload 1: TCplx Max(TCplx X, TCplx Y)
Maximum of two numbers.
Returns: TCplx (complex) - the maximum of two complex numbers X and Y.
Complex numbers are first compared by the absolute value. If they are equal they are further compared by the unwrapped phase -PI,PI angle.
Overload 2: TSCplx Max(TSCplx X, TSCplx Y)
Overload 3: Double Max(Double X, Double Y)
Maximum of two real numbers X and Y.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Double | scalar |
| 2 | Y | Double | scalar |
Returns: Double - the maximum of two real numbers X and Y.
Overload 4: Double Max(Double X, Int32 Y)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Double | scalar |
| 2 | Y | Int32 |
Returns: Double
Overload 5: Double Max(Int32 X, Double Y)
Mixed integer/double Max/Min.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Int32 | |
| 2 | Y | Double | scalar |
Returns: Double
Delphi promotes the Integer arg to double, but the emitted C++ sees Max(int, double) as AMBIGUOUS between the Integer and double overloads (neither is an exact match). These exact mixed overloads resolve it; in Delphi and C# an exact match wins over the promotion, so no existing call changes.
Overload 6: Int32 Max(Int32 X, Int32 Y)
Maximum of two integer numbers X and Y.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Int32 | |
| 2 | Y | Int32 |
Returns: Int32 - the maximum of two integer numbers X and Y.
Overload 7: Int64 Max(Int32 X, Int64 Y)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Int32 | |
| 2 | Y | Int64 |
Returns: Int64
Overload 8: Int64 Max(Int64 X, Int32 Y)
Mixed 64/32-bit integer Max/Min.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Int64 | |
| 2 | Y | Int32 |
Returns: Int64
Delphi auto-promotes the 32-bit arg to Int64, but the emitted C++ would see Max(long long, int) as AMBIGUOUS between the int and Int64 overloads. These exact overloads resolve it; in Delphi and C# an exact match wins over the promotion, so no existing call changes.
Overload 9: Int64 Max(Int64 X, Int64 Y)
Maximum of two 64bit integer numbers X and Y.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Int64 | |
| 2 | Y | Int64 |
Returns: Int64 - the maximum of two 64bit integer numbers X and Y.
Overload 10: Single Max(Single X, Single Y)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Single | scalar |
| 2 | Y | Single | scalar |
Returns: Single
Overload 11: Single Maxf(Single X, Single Y)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Single | scalar |
| 2 | Y | Single | scalar |
Returns: Single