This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/48787] Invalid UP rounding with F editing
- From: "thenlich at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 30 Apr 2011 15:58:08 +0000
- Subject: [Bug libfortran/48787] Invalid UP rounding with F editing
- Auto-submitted: auto-generated
- References: <bug-48787-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787
--- Comment #10 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-04-30 15:56:35 UTC ---
The start to scan is the digit corresponding to d+1.
e.g.
PRINT "(RU,F0.4)", .162500000000000048148
-> .1626 because 00000000000048148 > 0
PRINT "(RU,F0.4)", 3.1415926536
-> 3.1416 because 926536 > 0
PRINT "(RU,F0.1)", 2.5000000000
-> 2.5 because 000000000 = 0