[UP]


Manual Reference Pages  - float (3)

NAME

float(3f) - [FORTRAN:INTRINSIC] Convert integer to default real

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

SYNTAX

result = float(a)

DESCRIPTION

float(a) converts the integer A to a default real value.

ARGUMENTS

A - The type shall be INTEGER.

RETURN VALUE

The return value is of type default REAL.

EXAMPLE

Sample program:

    program demo_float
        integer :: i = 1
        if (float(i) /= 1.) call abort
    end program demo_float

STANDARD

[[FORTRAN 77]] and later

CLASS

[[Elemental procedure|Elemental function]]

SEE ALSO

[[dble]], [[real]]


float (3) March 18, 2019
Generated by manServer 1.08 from 2c54d9d8-1cd8-4d61-971e-7d30267a7017 using man macros.