IMAG IMAG returns the imaginary part of x. The mode of the result is real and has the base, scale, and precision of x. IMAG( x) x Expression. If x is real, it is converted to complex, and an appropriate zero value is returned.