user4861528
user4861528

Reputation: 467

What's the meaning of the function DFLOAT in fortran IV?

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

Answers (1)

SiggyF
SiggyF

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

Related Questions