other/5752: Zeros not displayed as significant figures
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Fri Feb 22 14:04:00 GMT 2002
Synopsis: Zeros not displayed as significant figures
State-Changed-From-To: open->closed
State-Changed-By: jakub
State-Changed-When: Fri Feb 22 13:31:54 2002
State-Changed-Why:
This has nothing to do with gcc, printf is in libc.
But glibc does the right thing, just read some standard
covering printf (be it ISO C99 or Unix98).
E.g. http://www.opengroup.org/onlinepubs/007908799/xsh/fprintf.html
sais about %g:
Trailing zeros are removed from the fractional portion of the result; a radix character appears only if it is followed by a digit.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5752
More information about the Gcc-bugs
mailing list