Complex   Conversion (Double to Complex)

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

Definition

Namespace: Meta.Numerics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static implicit operator Complex (
	double x
)

Parameters

x  Double
The double-precision real number to convert.

Return Value

Complex
The corresponding complex number.

Remarks

The complex number output has a zero imaginary part and real part equal to the input number.

This is an implicit cast; the compiler will apply it automatically whenever a real number is given in a situation where a complex number is required.

See Also