XL Fortran for AIX 8.1

Language Reference


CMPLX(X, Y, KIND)

Convert to complex type.

X
must be of type integer, real, or complex.

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

KIND (optional)
must be a scalar integer initialization expression.

Class

Elemental function

Result Type and Attributes

Result Value

Examples

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


Specific Name Argument Type Result Type Pass As Arg?
CMPLX (1) default real default complex no

Notes:

  1. IBM Extension.

Related Information

DCMPLX(X, Y), QCMPLX(X, Y).


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]