DREAL (The GNU Fortran Compiler)

### 8.95 `DREAL` — Double real part function ¶

Synopsis:

  `RESULT = DREAL(A)`

Description:

  `DREAL(Z)` returns the real part of complex variable Z.

Class:

  Elemental function

Arguments:

  A | The type shall be `COMPLEX(8)`.

Return value:

  The return value is of type `REAL(8)`.

Example:

      program test_dreal
          complex(8) :: z = (1.3_8,7.2_8)
          print *, dreal(z)
      end program test_dreal

Standard:

  GNU extension

See also:

  `AIMAG` — Imaginary part of complex number