This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/47567] Wrong output for small absolute values with F editing
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 5 Feb 2011 02:10:44 +0000
- Subject: [Bug libfortran/47567] Wrong output for small absolute values with F editing
- Auto-submitted: auto-generated
- References: <bug-47567-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567
--- Comment #4 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-02-05 02:10:39 UTC ---
With:
print "(F0.0)", 0.001 ! => 0.
print "(F0.0)", 0.01 ! => 0.
print "(F0.0)", 0.1 ! => 0.
print "(F1.0)", -0.0 ! => 0
print "(F1.0)", 0.001 ! => *
print "(F1.0)", 0.01 ! => *
print "(F1.0)", 0.1 ! => *
print "(F2.0)", -0.001! => **
print "(F2.0)", -0.01 ! => **
print "(F2.0)", -0.1 ! => **
print "(F0.0)", 0.0 ! => 0
print "(F0.1)", 0.0 ! => .0
print "(F0.2)", 0.0 ! => .00
print "(F0.3)", 0.0 ! => .000
print "(F0.4)", 0.0 ! => .0000
print "(F2.0)", 0.0 ! => 0.
print "(F2.0)", 0.001 ! => 0.
print "(F2.0)", 0.01 ! => 0.
print "(F2.0)", 0.1 ! => 0.
end
I currently get, as patched:
$ ./a.out
0.
0.
0.
0
*
*
*
**
**
**
0
.0
.00
.000
.0000
0.
0.
0.
0.
Looks reasonable to me. Any other opinions?