## 9.3.7 AIMAG (Z)

Description: | Returns the imaginary part of a complex number. This function can also be specified as IMAG.
Class: | Elemental function; Generic
Arguments: | Z must be of type complex.
Results: | The result is of type real with the same kind parameter as Z. If Z has the value (x, y), the result has the value y. The setting of compiler options specifying real size can affect AIMAG.

Specific Name | Argument Type | Result Type
--- | --- | ---
AIMAG | COMPLEX(4) | REAL(4)
DIMAG | COMPLEX(8) | REAL(8)
QIMAG | COMPLEX(16) | REAL(16)

Examples

AIMAG ((4.0, 5.0)) has the value 5.0.

Previous Page Next Page Table of Contents