Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Sign(const Z: TCplx): TCplx; | Changes the sign of a complex number. |
| 2 | function Sign(const Z: TSCplx): TSCplx; | |
| 3 | function Sign(const a: Double; const b: Double): Double; | Fortran sign function. |
| 4 | function Sign(const a: Single; const b: Single): Single; | |
| 5 | function Signf(const a: Single; const b: Single): Single; |
Overload 1: function Sign(const Z: TCplx): TCplx;
Overload 2: function Sign(const Z: TSCplx): TSCplx;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Z | TSCplx |
Returns: TSCplx
Overload 3: function Sign(const a: Double; const b: Double): Double;
Fortran sign function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | Double | |
| 2 | b | Double |
Returns: Double - It uses slightly different definition for changing sign of a complex number: * if b>=0, it returns |a|, * otherwise, -|a|.
Overload 4: function Sign(const a: Single; const b: Single): Single;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | Single | |
| 2 | b | Single |
Returns: Single
Overload 5: function Signf(const a: Single; const b: Single): Single;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | a | Single | |
| 2 | b | Single |
Returns: Single