[Bug libstdc++/49048] setprecision rounding fails in some cases

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Thu May 19 09:00:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49048

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-19 08:42:45 UTC ---
Glad that the issue is clear now. By the way, Cecilio, apparently in your
Comment #4 you didn't get my point about the C++ library vs printf: the ISO C++
Standard specifies the behavior of setprecision, precision, and so on, **in
terms of printf**, with no intermediate rounding, truncation, or whatelse:
really everything must go "as-if" the number were feed directly to a printf
like the one written down by myself and Jakub. Thus, really, if anything, this
PR could be *only* a glibc issue. As a matter of fact, isn't an issue at all.



More information about the Gcc-bugs mailing list