bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ 3.0.3 [library] bug? cout << 1.23456;


From: Robert Fenk
Subject: g++ 3.0.3 [library] bug? cout << 1.23456;
Date: 13 Feb 2002 18:59:15 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Capitol Reef)

Hi,

with g++ 3.0.3 I get hexadecimal output for float/doubles,
does anybody else is seeing this?

gcc is running on SunOS 5.8 Generic_108528-12 sun4u sparc
SUNW,Ultra-5_10.

---------------------------------------------------------------------
#include <iostream>

using namespace std;

int main(void) {
        cout << 1.2345 <<endl;
        return 1;
}
---------------------------------------------------------------------

The output: 0x3ff3c083



reply via email to

[Prev in Thread] Current Thread [Next in Thread]