public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18060] New: sprintf round problem (that not occurs with egcs)
@ 2004-10-19 16:27 mauro at altersoft dot com dot ar
  2004-10-19 16:30 ` [Bug c++/18060] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: mauro at altersoft dot com dot ar @ 2004-10-19 16:27 UTC (permalink / raw)
  To: gcc-bugs

I've read that you do not consider proper reporting bugs about rounding, but I
have a program compiled in a RH62 with egcs that works fine and the same program
compiled in RH73 with gcc making trouble.

Simple code line:

char aux[50];
char aux2[50];
sprintf(aux,"%.0f",2068.5);
sprintf(aux2,"%.0f",2067.5);

In RH73 gives in both cases "2068" !!  In RH62 aux is "2069" !

So I have to think that gcc has a problem that egcs does not.

-- 
           Summary: sprintf round problem (that not occurs with egcs)
           Product: gcc
           Version: 2.96 (redhat)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mauro at altersoft dot com dot ar
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/18060] sprintf round problem (that not occurs with egcs)
  2004-10-19 16:27 [Bug c++/18060] New: sprintf round problem (that not occurs with egcs) mauro at altersoft dot com dot ar
@ 2004-10-19 16:30 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-19 16:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-19 16:30 -------
Not a GCC bug, if it is a bug, it is a bug in glibc and not gcc.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-19 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-19 16:27 [Bug c++/18060] New: sprintf round problem (that not occurs with egcs) mauro at altersoft dot com dot ar
2004-10-19 16:30 ` [Bug c++/18060] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).