DBLE — Double conversion functionDBLE(A) Converts A to double precision real type. RESULT = DBLE(A) | A | The type shall be INTEGER, REAL, or COMPLEX. |
program test_dble
real :: x = 2.18
integer :: i = 5
complex :: z = (2.3,1.14)
print *, dble(x), dble(i), dble(z)
end program test_dble
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-4.9.3/gfortran/DBLE.html