Description: |
Converts the argument to double complex type. | ||

Class: |
Elemental function; Generic | ||

Arguments: |
X | Must be of type integer, real, or complex. | |

Y (opt) | Must be of type integer or real. It must not be present if X is of type complex. | ||

Results: |
The result type is double complex
(COMPLEX(8) or COMPLEX*16).
If only one noncomplex argument appears, it is converted into the real part of a complex value and zero is assigned to the imaginary part. If Y is not specified and X is complex, it is as if Y were present with the value AIMAG(X). If two noncomplex arguments appear, the complex value is produced by converting the first argument into the real part of the value, and converting the second argument into the imaginary part. DCMPLX(X, Y) has the complex value whose real part is REAL(X, KIND=8) and whose imaginary part is REAL(Y, KIND=8). |

**Examples**

DCMPLX (-3) has the value (-3.0, 0.0).

DCMPLX (4.1, 2.3) has the value (4.1, 2.3).

Previous Page Next Page Table of Contents