Next: FLOOR, Previous: FGETC, Up: Intrinsic Procedures
FLOAT
— Convert integer to default realFLOAT(A)
converts the integer A to a default real value.
RESULT = FLOAT(A)
A | The type shall be INTEGER .
|
REAL
.
program test_float integer :: i = 1 if (float(i) /= 1.) call abort end program test_float