This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++/9548: 64-bit copiling/linking: incorrect results from setf(ios::fixed) orprecision(-1)


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;
 }
 /**********************************************************************/
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]