Converts a double-precision real number to a complex number.
- x (Double)
- The double-precision real number to convert.
The corresponding complex number.
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.