Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TCplx Max(const TCplx &X, const TCplx &Y); | Maximum of two numbers. |
| 2 | TSCplx Max(const TSCplx &X, const TSCplx &Y); | |
| 3 | double Max(double X, double Y); | Maximum of two real numbers X and Y. |
| 4 | int Max(int X, int Y); | Maximum of two integer numbers X and Y. |
| 5 | long long Max(long long X, long long Y); | Maximum of two 64bit integer numbers X and Y. |
| 6 | long long Max(long long X, int Y); | Mixed 64/32-bit integer Max/Min. |
| 7 | long long Max(int X, long long Y); | |
| 8 | double Max(int X, double Y); | Mixed integer/double Max/Min. |
| 9 | double Max(double X, int Y); |
Overload 1: TCplx Max(const TCplx &X, const TCplx &Y);
Maximum of two numbers.
Returns: 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(const TSCplx &X, const TSCplx &Y);
Overload 3: double Max(double X, double Y);
Maximum of two real numbers X and Y.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | double | |
| 2 | Y | double |
Returns: the maximum of two real numbers X and Y.
Overload 4: int Max(int X, int Y);
Maximum of two integer numbers X and Y.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | int | |
| 2 | Y | int |
Returns: the maximum of two integer numbers X and Y.
Overload 5: long long Max(long long X, long long Y);
Maximum of two 64bit integer numbers X and Y.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | long long | |
| 2 | Y | long long |
Returns: the maximum of two 64bit integer numbers X and Y.
Overload 6: long long Max(long long X, int Y);
Mixed 64/32-bit integer Max/Min.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | long long | |
| 2 | Y | int |
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 7: long long Max(int X, long long Y);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | int | |
| 2 | Y | long long |
Overload 8: double Max(int X, double Y);
Mixed integer/double Max/Min.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | int | |
| 2 | Y | 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 9: double Max(double X, int Y);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | double | |
| 2 | Y | int |