(j3.2006) Interp F08/0055: G editing for reals

Malcolm Cohen malcolm
Sun Jul 31 22:29:38 EDT 2011


Thomas Henlich wrote:
>3. Is it intended that (RC,1P,G11.1) editing applied to 0.096 should
>output "0.1" when (1P,E11.1) editing would output "9.6E-02" which does
>not fall into the F editing range and represents the result with a
>higher precision than the first?

Yes.  RC is what F90 specified, so this is as required by F90.  I'm not sure 
what the problem here is unless it is that you are complaining that the G edit 
descriptor has always been silly when scale factors are involved.

We can go back to at least F77, consider:

      print 1,0.74,0.94,74.,94.
1     format(1x,1p,g11.1)
      end

This will produce

0.7
0.9
7.4E+01
9.4E+01

And this is how it has been for a very long time.

Cheers,
-- 
................................Malcolm Cohen, Nihon NAG, Tokyo. 




More information about the J3 mailing list