[UP]


Manual Reference Pages  - dble (3)

NAME

dble(3f) - [FORTRAN:INTRINSIC:NUMERIC] Double conversion function

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

SYNTAX

result = DBLE(A)

DESCRIPTION

DBLE(A) Converts A to double precision real type.

ARGUMENTS

A - The type shall be INTEGER, REAL, or COMPLEX.

RETURN VALUE

The return value is of type DOUBLEPRECISION.

EXAMPLE

Sample program:

    program demo_dble
        real    :: x = 2.18
        integer :: i = 5
        complex :: z = (2.3,1.14)
        print *, dble(x), dble(i), dble(z)
    end program demo_dble

STANDARD

[[FORTRAN 77]] and later

CLASS

[[Elemental procedure|Elemental function]]

SEE ALSO

[[float]], [[real]]


dble (3) March 18, 2019
Generated by manServer 1.08 from fc4566fb-d7f4-463e-949f-dd9619577095 using man macros.