Next: , Previous: DATE_AND_TIME, Up: Intrinsic Procedures


7.37 DBLE — Double conversion function

Description:
DBLE(X) Converts X to double precision real type. DFLOAT is an alias for DBLE
Option:
f95, gnu
Class:
elemental function
Syntax:
X = DBLE(X) X = DFLOAT(X)
Arguments:

X The type shall be INTEGER(*), REAL(*), or COMPLEX(*).

Return value:
The return value is of type double precision real.
Example:
          program test_dble
              real    :: x = 2.18
              integer :: i = 5
              complex :: z = (2.3,1.14)
              print *, dble(x), dble(i), dfloat(z)
          end program test_dble