Hi,
you have to use
cout << fixed(2) << var;
to display only 2 number after the decimal point
Marc
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 2 of 2
Thread: ostreamThreaded View
|
Click Here to Expand Forum to Full Width |