[Bug libfortran/48787] Invalid UP rounding with F editing
thenlich at users dot sourceforge.net
gcc-bugzilla@gcc.gnu.org
Sat Apr 30 15:58:00 GMT 2011
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
More information about the Gcc-bugs
mailing list