floats?

Gerhard Siegesmund siegesmund@mail.respublica.de
Sat Oct 17 15:40:00 GMT 1998


Hello all

At first, I am not on this mailing list, cause I just have this little
problem. So please answer to my email-adress also...
(Didn't find the problem in the FAQ nor using WebGlimpse)

Compiling the following code using
g++ programm.cpp
gives me the following result:

---CODE-----------
#include <iostream.h>

int main (void)
{
    float test;

    test = 1.0;
    cout << test << " " << 1.0 << "\n";
    return 0;
}
-------------------

---RESULT---------
+1.67941e-4932 -3.25236e-4410
-------------------

Where could I have done something wrong? I installed egcs as told in the
documentation. Same problem with 1.0.3 and 1.1b. Can anybody help me?

---
cu
  --== Jerri ==--
Homepage:       http://www.cip.physik.uni-muenchen.de/~siegesm/
finger gerhard@nero.respublica.de to get PGP Public Key



More information about the Gcc-bugs mailing list