float(3f) - [FORTRAN:INTRINSIC] Convert integer to default real
Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also
result = float(a)
float(a) converts the integer A to a default real value.
A - The type shall be INTEGER.
The return value is of type default REAL.
Sample program:
program demo_float integer :: i = 1 if (float(i) /= 1.) call abort end program demo_float
[[FORTRAN 77]] and later
[[Elemental procedure|Elemental function]]
[[dble]], [[real]]
float (3) | March 18, 2019 |