Casts a DoubleComplex number to a real number. The
imaginary part must be zero.
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Narrowing Operator CType ( _ z As DoubleComplex _ ) As Double |
| C# |
|---|
public static explicit operatordouble ( DoubleComplex z ) |
| C++ |
|---|
|
Parameters
- z (Extreme.Mathematics.DoubleComplex)
- The complex number to convert.
Return Value
A floating-point number with the same value as the complex number.
Remarks
The imaginary part of z is discarded.
Exceptions
| Exception | Condition |
|---|---|
| InvalidCastException | The imaginary part of the complex number is not zero. |