This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: other/5752: Zeros not displayed as significant figures


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]