Next: , Previous: FGETC, Up: Intrinsic Procedures


7.72 FLOAT — Convert integer to default real

Description:
FLOAT(A) converts the integer A to a default real value.
Standard:
Fortran 77 and later
Class:
Elemental function
Syntax:
RESULT = FLOAT(A)
Arguments:

A The type shall be INTEGER.

Return value:
The return value is of type default REAL.
Example:
          program test_float
              integer :: i = 1
              if (float(i) /= 1.) call abort
          end program test_float
     

See also:
DBLE, DFLOAT, REAL