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