|字号 订阅 _ttoi: 例: double a; CString str; a = _ttoi(str); //取整 a = _tstof(str); //保留小数位 str.Format(_T("%g"),a); %g省略末尾0;