Double to String
-
I use function _gcvt() for convert the double value to string such as: y = 0.01; _gcvt(y,10,buffer); MessageBox(buffer); My problem is that the MessageBox will show "1.e-002". How to do if want the string "0.01" after finish this function.
-
I use function _gcvt() for convert the double value to string such as: y = 0.01; _gcvt(y,10,buffer); MessageBox(buffer); My problem is that the MessageBox will show "1.e-002". How to do if want the string "0.01" after finish this function.
-
I use function _gcvt() for convert the double value to string such as: y = 0.01; _gcvt(y,10,buffer); MessageBox(buffer); My problem is that the MessageBox will show "1.e-002". How to do if want the string "0.01" after finish this function.
or see here
double y = 1230.01; CString strxx; strxx.Format("%lf", y ); MessageBox(strxx);
_**
**_
whitesky