Imaginary part of a complex number.
Class
Elemental function
Result Type and Attributes
Real with the same kind type parameter as Z.
Result Value
If Z has the value (x,y), the result has the value y.
Examples
AIMAG ((2.0, 3.0)) has the value 3.0.
Specific Name | Argument Type | Result Type | Pass As Arg? |
---|---|---|---|
AIMAG | default complex | default real | yes |
DIMAG (1) | double complex | double precision real | yes |
QIMAG (1) | COMPLEX(16) | REAL(16) | yes |
Notes: