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
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