AIMAG (complex-number) A function that returns the imaginary part of a complex number. The argument must be a COMPLEX*8 data type. The result is a REAL*4 data type. The setting of -r8 affects AIMAG.