This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

output format dependent on standard?


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 :)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]