This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/48787] Invalid UP rounding with F editing


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]