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: Mon, 21 Feb 2011 14:32:30 +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 #22 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-02-21 14:32:14 UTC ---
On my system I get with:
print *, "--------------------------------------"
print "(F0.0)", -0.0 ! => -0.
print "(F3.0)", -0.0 ! => -0.
print "(F2.0)", -0.0 ! => **
print "(F1.0)", -0.0 ! => *
print *, "--------------------------------------"
print "(F0.1)", -0.0 ! => -.0
print "(F3.1)", -0.0 ! => -.0
print "(F2.1)", -0.0 ! => **
print "(F1.1)", -0.0 ! => *
This. The difference being my signature zero.
--------------------------------------
-0.
-0.
**
0
--------------------------------------
-.0
-.0
**
0
I confess, it does not look consistent. Next time slice, I will update it. ;)