When I use it, to convert a double to cstring, the result appears with 6 decimals
CString str;
double dDouble = 3.123456;
str.Format('Double is = %2lf',dDouble);
AfxMessageBox(str);
Result = Double is = 3.120000
My question is, How can I see only 2 decimals?
Thank you in advance.
Paola
I have in my text file called "lectura.txt":
lectura.txt
----------------------------------------------------------
Sandra Bullock
Edmundo Wilson
Daniel Perez
Peter Julius
Anthony Hopkins
Paola Sandoval
Giovanna White
----------------------------------------------------------
But, I...
I have in my text file:
Sandra Bullock
Edmundo Wilson
Daniel Perez
Peter Julius
Anthony Hopkins
Paola Sandoval
Giovanna White
But, I want learn the second row, from the position 3 to 7
the word "mundo".
If anybody knows the code for it, I will be thanksfully.
Paola S
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.