cimag(3) Library Functions Manual cimag(3) cimag, cimagf, cimagl - (libm, -lm) #include double cimag(double complex z); float cimagf(float complex z); long double cimagl(long double complex z); z. : z = creal(z) + I * cimag(z) attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |cimag(), cimagf(), cimagl() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ GCC also supports __imag__. That is a GNU extension. C11, POSIX.1-2008. glibc 2.1. C99, POSIX.1-2001. cabs(3), creal(3), complex(7) () Azamat Hackimov , Dmitriy S. Seregin , Dmitry Bolkhovskikh , Katrin Kutepova , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () . Linux man-pages 6.18 8 2026 . cimag(3)