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??
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 2 of 2
Tags for this Thread |
Click Here to Expand Forum to Full Width |