[Bug libfortran/48787] Invalid UP rounding with F editing
thenlich at users dot sourceforge.net
gcc-bugzilla@gcc.gnu.org
Sat Apr 30 12:00:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787
--- Comment #8 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-04-30 11:58:36 UTC ---
> I think for rounding up we need to test if ALL the cut off digits are zeros.
One more thought: It might be (statistically) faster to scan the digits from
last to first than vice versa.
There are many more internal values which don't have an exact decimal
representation than those that have. The quantization error will show itself in
the last digits.
E.g. print "(f0.40)", 0.1_16 !> .1000000000000000000000000000000000048148
More information about the Gcc-bugs
mailing list