convert CString to foat using _ttoi
SPONSORED LINKS
i am converting CString to float using _ttoi
CString p; p=("1.122");
CString y;
float o;
o=_ttoi(p);
y.Format(_T("%f"),o);
TRACE(y);
but answer is 1 and i need 1.122
can anyone help me??
Excerpt from:
convert CString to foat using _ttoi