double d =24938985938982.23985849859893345; CString str; str.Format("%.2e",d); m_Edit.SetWindowText((LPCSTR)str);