I have this code:
float myFloat = 100.520920
CString myString;
myString.Format("%f",myFloat);
I want the string to display 100.52 (limit to two decimal places)
how can I do this?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 2 of 2
Thread: another simple questionThreaded View
|
Click Here to Expand Forum to Full Width |