Meta.Numerics Library
Implicit Operator
Meta.NumericsMeta.NumericsComplexImplicitWideningImplicitImplicitImplicit(Double to Complex)
Converts a double-precision real number to a complex number.
Declaration Syntax
C#Visual BasicVisual C++F#
public static implicit operator Complex (
	double x
)
Public Shared Widening Operator CType ( _
	x As Double _
) As Complex
static implicit operator Complex (
	double x
)
F# does not support the declaration of new casting operators.
Parameters
x (Double)
The double-precision real number to convert.
Return Value
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.