This data type has the same precision as default REAL.
COMPLEX :: z, j, za(1:100)
COMPLEX, PARAMETER :: i = (0.0,1.0)
z = CMPLX(x,y)
REAL :: x; COMPLEX :: a, b, c, ... a = x*((b+c)*CMPLX(0.1,-0.1)) b = 1
The real value x will be promoted to the complex value CMPLX(x,0). b will be set to CMPLX(1.0,0).
For more information, click here