http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602
--- Comment #49 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-05-04 12:48:28 UTC --- (In reply to comment #47) > (In reply to comment #46) > > I have started on the second phase of this effort which is to get rid of the > > floating point issue on -m32 machines. > > Hello. I have noticed a bug which seems related to the one you are describing. > According to the Fortran 95 standard, printing the number 0.96 with the format > 1pg7.1 should give the same result than with format f3.0. Thus, the result > should be 1., but Gfortran produces the surprising result 0. Is it the same > bug? > Sincerely, > Lionel GUEZ Can you please provide a short example program, and what version of GFortran you are using? I cannot reproduce the described bug with GFortran 4.4.5 nor with 4.7-20110430. Your expected result is correctly produced by the program: print "(1pg7.1)", 0.96 end => 1.