output format dependent on standard?

Daniel Franke franke.daniel@gmail.com
Sun Aug 5 18:32:00 GMT 2007


Hi all.

Is there any specific reason for this switch in formatting if -std=f95?

$> cat print.f90
print *, 0.0, 0.1
end

$> gfortran-svn -std=gnu print.f90  && ./a.out
   0.000000      0.1000000
$> gfortran-svn -std=f95 print.f90  && ./a.out
  0.0000000E+00  0.1000000
$> gfortran-svn -std=f2003 print.f90  && ./a.out
   0.000000      0.1000000

Thanks
	Daniel

P.S. On IRC, Jerry pointed to libgfortran/io/write.c (calculate_G_format), 
stating that he does not hold responsible for it :)



More information about the Fortran mailing list