Complex<T> Explicit  Conversion (Complex<T> to T)

Casts a complex number to a real number. The imaginary part must be zero.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
public static explicit operator T (
	Complex<T> z
)

Parameters

z  Complex<T>
The complex number to convert.

Return Value

T
A floating-point number with the same value as the complex number.

Remarks

The imaginary part of z is discarded.

See Also