9.3.121 QCMPLX (X [, Y]) (VMS, U*X)

Description:  Converts the argument to COMPLEX(16) type. This function must not be passed as an actual argument.  
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 COMPLEX(16) (or COMPLEX*32).

If only one noncomplex argument appears, it is converted into the real part of the result value and zero is assigned to the imaginary part. If Y is not specified and X is complex, the result value is CMPLX (REAL(X), 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.

QCMPLX(X, Y) has the complex value whose real part is REAL(X, KIND=16) and whose imaginary part is REAL(Y, KIND=16).
 

Examples

QCMPLX (-3) has the value (-3.0Q0, 0.0Q0).

QCMPLX (4.1, 2.3) has the value (4.1Q0, 2.3Q0).


Previous Page Next Page Table of Contents