Reputation: 467
I need to translate fortran IV code to Matlab. One of the lines of the Fortran code is:
w(J)=DFLOAT(I)
where w is an array and I and J are indices. Is the DFLOAT function is only some sort of type conversion?
Upvotes: 1
Views: 2511
Reputation: 23145
The DFLOAT
function (in gfortran) converts a number into double precision. I can't find a reference to it in the Fortran IV docs, but it is available as an extension function in some compilers. The standard name for this function is DBLE
. The matlab equivalent is the double
function.
Upvotes: 1