public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: Cavit Cahit VURAL <ccvural@ttnet.net.tr>
To: gcc-bugs@gcc.gnu.org
Subject: Bug
Date: Fri, 06 Jan 2006 12:01:00 -0000	[thread overview]
Message-ID: <43BE5C3C.6020801@ttnet.net.tr> (raw)

Hi,

I am not sure is this a bug or not !.

Here is my code, very simple

///////////////////////////////////////////////////////////

#include <stdio.h>
int main ()
{
    float                a;
    float                b;
    int                  i;

    a = 10.97;
    b = 0.0;
    for (i=0; i < 30; i++) {
        b = b + a;
    }
    printf ("a = %f , b = %f", a, b);
    return (0);
}

//////////////////////////////////////////////

And the output :

a = 10.970000 , b = 329.100006

////////////////////////////////////////////

Why b is not just 329.1 ?


My gcc is gcc-3.4.4.

I tried both on DOS / DJGPP and Cygwin/WinXP

Any Idea or Solution ?

Regards

CC Vural




             reply	other threads:[~2006-01-06 12:01 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-06 12:01 Cavit Cahit VURAL [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-02-08 18:07 bug Cseke Tamas
2006-07-19 18:57 bug kfahoo
2005-12-18 12:14 bug Igor Selitsky
2005-03-03 12:15 Bug Administrator
2005-02-20 15:28 Bug Fikret Skrgic
2005-02-20 15:50 ` Bug Eric Botcazou
2002-07-30 14:56 bug Scott Dorsey
2002-01-08 17:46 bug ditty
2001-12-28 10:14 bug Paolo Carlini
2001-12-28  9:54 bug fabiosmoker
2001-12-11 12:14 BUG Jason Beltrame
2001-10-22 20:55 Bug Bob Bomar
2001-09-19 15:56 bug Yves Dorfsman
2001-07-02 17:07 bug NOBUHIRO OKAMOTO
2001-07-02 17:58 ` bug Toshi Morita
     [not found] <000d01c01bcf$94785c30$e20f083d@wildcomm.net>
2000-09-11 20:51 ` Bug Alexandre Oliva
2000-08-17 23:31 bug Thomas Rudlof
2000-08-11 10:46 bug Joseph Meeks
2000-07-05 15:10 bug Jesus Ruiz
2000-07-05 15:20 ` bug Alexandre Oliva
2000-04-20  6:04 bug BRODIER Olivier
2000-03-31 15:26 BUG David
     [not found] <4.3.0.20000307111239.00aaea40@mail.questgate.net>
2000-03-07 12:05 ` bug Martin v. Loewis
2000-03-08  8:14   ` bug Michael Long
2000-03-09 16:33     ` bug Alexandre Oliva
2000-02-29 10:57 bug wieland Kroetz
     [not found] <3896F92C.87F1A9FF@godel.dis.eafit.edu.co>
2000-02-01 19:32 ` BUG Alexandre Oliva
1999-12-06 12:45 Bug George Christakis
1999-12-31 20:54 ` Bug Brian Ford
1999-11-30 23:39 bug martin.schindelin
1999-11-30 23:39 ` bug Martin v. Loewis
1999-11-30 23:39 bug Martin Richard
1999-11-09 21:32 ` bug Alexandre Oliva
1999-10-31 23:03 bug Mike Stump
1999-10-26 11:02 Bug Gustavo Niemeyer
1999-10-27 12:34 ` Bug Martin v. Loewis
1999-10-19  9:51 bug Helen Sun
1999-09-12  5:21 bug Stefan Wehner
1999-09-13 23:45 ` bug Martin v. Loewis
1999-09-10 19:53 Bug Samy
1999-09-10 23:48 ` Bug Mumit Khan
1999-07-31 23:33 bug John Cotton
1999-08-31 22:45 ` bug Jeffrey A Law
1999-07-31 23:33 bug Wael Hassan
1999-07-31 23:33 ` bug Brian Ford
1999-06-30 23:07 BUG root of all evil
1999-06-05  2:46 ` BUG Alexandre Oliva
1999-06-28  5:34 BUG Stelios Xanthakis
1999-06-29  1:34 ` BUG Alexandre Oliva
1999-06-18 11:51 bug Mohamed Zaakoun
1999-05-31 21:06 Bug Klaus Causemann
1999-05-22  1:41 ` Bug Philipp Thomas
     [not found] <99051319112100.00451@localhost.localdomain>
1999-05-31 21:06 ` Bug Martin v. Loewis
1999-04-30 23:15 BUG Chris Teli
1999-04-15  7:09 ` BUG Alexandre Oliva
1999-04-30 23:15 Bug David Corbin
1999-04-30 23:15 bug holger
1999-04-13 18:26 BUG Steven Chi
1999-04-30 23:15 ` BUG Alexandre Oliva
1999-04-04  8:53 Bug Mathias Creutz
1999-04-05 12:40 ` Bug Alexandre Oliva
1999-02-28 23:30 Bug Philip Rademakers
1999-02-28 23:30 ` Bug Nathan Sidwell
1999-02-04  6:49 Bug Dan Vasaru
1998-12-17  8:25 bug Jean-Benoit Pierrot
1998-11-23  6:46 bug Massimo Boninsegni
1998-11-23 13:26 ` bug Alexandre Oliva
1998-09-23  7:09 Bug Energoprom
1998-09-23 22:02 ` Bug Alexandre Oliva
1998-09-17  5:09 bug Thien Traitham
1998-09-17 10:49 ` bug Alexandre Oliva
1998-08-31 13:07 bug Brian Grossman
1998-09-01 20:17 ` bug Alexandre Oliva
1998-07-28  4:13 bug Henning Emmrich
1998-07-17  9:51 Bug J. de Antonio
1998-07-14 17:29 bug Fritz Koenig
1998-07-14 23:27 ` bug Martin von Loewis
1998-04-21 12:00 bug root
1998-03-23 23:23 bug Mats Hjelm
1998-02-09 23:36 bug Leeann Bent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43BE5C3C.6020801@ttnet.net.tr \
    --to=ccvural@ttnet.net.tr \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).