Click or drag to resize

Complex  Conversion (Complex to Double)

Converts the complex number to a double-precision real number.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static explicit operator double (
	Complex z
)

Parameters

z
Type: Meta.NumericsComplex
The complex number to covert.

Return Value

Type: Double
The corresponding double-precision real number.
Exceptions
ExceptionCondition
InvalidCastExceptionz.Im ≠ 0
Remarks

This explicit cast will fail if the complex number has a non-zero imaginary part. If you just want to obtain the real part of a complex number, use the Re property.

See Also