This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/9548: 64-bit copiling/linking: incorrect results from setf(ios::fixed) orprecision(-1)
- From: axiong at ca dot ibm dot com
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 3 Feb 2003 18:26:01 -0000
- Subject: Re: libstdc++/9548: 64-bit copiling/linking: incorrect results from setf(ios::fixed) orprecision(-1)
- Reply-to: axiong at ca dot ibm dot com
The following reply was made to PR libstdc++/9548; it has been noted by GNATS.
From: axiong@ca.ibm.com
To: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: libstdc++/9548: 64-bit copiling/linking: incorrect results from setf(ios::fixed) or
precision(-1)
Date: Mon, 3 Feb 2003 13:25:16 -0500
=> The C++ source code which was not attached successfully
/*********************************************************************/
#include <iostream>
using namespace std;
int main()
{
cout.setf(ios::fixed);
cout.precision (-1); // set precision to -1
cout << "Output 30.5 as: " << 30.5 << "\n";
return 0;
}
/**********************************************************************/