9.67. COMPLEX
9.67 COMPLEX — Complex conversion function
- Description:
-
COMPLEX(X, Y)
returns a complex number where X is converted to the real component and Y is converted to the imaginary component. - Standard:
- GNU extension
- Class:
- Elemental function
- Syntax:
-
RESULT = COMPLEX(X, Y)
- Arguments:
-
X The type may be INTEGER
orREAL
.Y The type may be INTEGER
orREAL
. - Return value:
- If X and Y are both of
INTEGER
type, then the return value is of defaultCOMPLEX
type.If X and Y are of
REAL