MFC CString to Double

CString str;

..

..

double d = _tcstod(str, NULL);

double d = _tcstod(_t("314.025"), null);

double f = atof("314.025");

assert( d ==314.025 );

assert( f ==314.025 );

 

posted @ 2013-02-20 16:51  Gigbit  阅读(243)  评论(0编辑  收藏  举报