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.3
C#
public static explicit operator T (
	Complex<T> z
)

Parameters

z  Complex<T>
The complex number to convert.

Return Value

T
A number with the same value as the complex number.

Remarks

The imaginary part of z is discarded.

See Also