Clicky
Showing changes from revision #0 to #1:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
float(a)
converts the integer a
to a default real value.
Fortran 77 and later
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