9.76. DBLE

9.76 DBLE — Double conversion function

Description:
DBLE(A) Converts A to double precision real type.
Standard:
Fortran 77 and later
Class:
Elemental function
Syntax:
RESULT = DBLE(A)
Arguments:
A 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), dble(z)
end program test_dble
See also:
REAL

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gfortran/DBLE.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部