floats?
Gabriel Dos Reis
Gabriel.Dos-Reis@dptmaths.ens-cachan.fr
Sat Oct 17 17:44:00 GMT 1998
>>>>> Gerhard Siegesmund <siegesmund@mail.respublica.de> wrote:
> 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?
Curious. I can't reproduce that problem on my SPARCStation using
egcs-1.1b. On which platform are you running your program ?
-- Gaby
More information about the Gcc-bugs
mailing list