Clicky
Showing changes from revision #1 to #2:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
float(a)
converts the integer a
to a default real value.
(削除) Fortran 77 and later (削除ここまで)(追記) FORTRAN 77 (追記ここまで)(追記) and later (追記ここまで)
(削除) Elemental function (削除ここまで)(追記) Elemental function (追記ここまで)
result = float(a)
a
- The type shall be integer
.The return value is of type default real
.
program test_float
integer :: i = 1
if (float(i) /= 1.) call abort
end program test_float