tags:

views:

80

answers:

1

I have the following function signature in Fortran. I am new to the Fortran language - what is meant by 0. in the function below?

ANTY(IAN,NA,0.,0.)
+6  A: 

The notation 0. with a decimal point represents a floating point number, while 0 without a decimal point represents an integer. This is an important distinction for some implementations of FORTRAN, where the programmer must ensure that data types are consistent between the caller of a subroutine and the subroutine itself.

Greg Hewgill