Is There a Better Double-Precision Assignment in Fortran 90?

A real which isn’t marked as double precision will be assumed to be single precision. Just because sometime later you assign it to a double precision variable, or convert it to double precision, that doesn’t mean that the value will ‘magically’ be double precision. It doesn’t look ahead to see how the value will be used.

Leave a Comment