User Tools

Site Tools


cpp:osteams

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
cpp:osteams [2020/05/17 19:04]
gthanos [std::ios::floatfield]
cpp:osteams [2020/05/17 19:10]
gthanos [std::ios::floatfield]
Line 164: Line 164:
   cout << 123456.7890123456789 << endl;   cout << 123456.7890123456789 << endl;
   cout << 123456789.0123456789 << endl;   cout << 123456789.0123456789 << endl;
 +  
 +  cout << std::showpoint << endl;
 +  cout << 30 << " " <<  1000L << " " << 1000.00 << " " << 3.14159;
 +  cout << std::noshowpoint << endl;
 +  cout << 30 << " " << 1000L << " " << 1000.00 << " " << 3.14159;
 +  cout << endl;
      
   cout << std::fixed << endl;   cout << std::fixed << endl;
Line 183: Line 189:
   cout << std::setprecision(7) << 123.456 << endl;   cout << std::setprecision(7) << 123.456 << endl;
      
-  cout << std::showpoint << endl; +  
-  cout << 30 << " " <<  1000L << " " << 1000.00 << " " << 3.14159; +
-  cout << std::noshowpoint << endl; +
-  cout << 30 << " " << 1000L << " " << 1000.00 << " " << 3.14159; +
-  cout << endl;+
 } }
 </code> </code>
cpp/osteams.txt · Last modified: 2020/05/17 18:10 (external edit)