Sep 24, 2001 #1 PaolaS Programmer Aug 23, 2001 8 ES How can I convert a double to CString? Thank you in advance
Sep 24, 2001 #2 evilpeer Programmer Sep 24, 2001 16 US Try the Format member function of CString. MSDN Library should provide the details you'll need. Upvote 0 Downvote
Sep 25, 2001 1 #3 IonelBurtan Programmer May 25, 2001 601 RO CString str; double dDouble; str.Format('Double is = %2lf',dDouble); AfxMessageBox(str); where 2 is the number of decimals you desire. HTH, s-) Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness... http://www20.brinkster.com/ionelb Upvote 0 Downvote
CString str; double dDouble; str.Format('Double is = %2lf',dDouble); AfxMessageBox(str); where 2 is the number of decimals you desire. HTH, s-) Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness... http://www20.brinkster.com/ionelb