[Bug c/50773] float values are printed with greater precision than the float data type has when given as an argument to printf()
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 18 10:06:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50773
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-18 10:05:56 UTC ---
%f prints doubles, float arguments to variadic argument functions are promoted
to double (thus, you can't print a "float" value with printf)
More information about the Gcc-bugs
mailing list