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 revisionPrevious revision
Next revision
Previous revision
cpp:osteams [2020/05/17 19:04] – [std::ios::floatfield] gthanoscpp:osteams [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
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 182: Line 188:
   cout << std::setprecision(6) << 123.456 << endl;   cout << std::setprecision(6) << 123.456 << endl;
   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.1589742282.txt.gz · Last modified: 2020/05/17 18:04 (external edit)