atoi
C / C++ / MFC
4
Posts
2
Posters
0
Views
1
Watching
-
Why is it that if I do a atoi on a string it trims off everything after the "."? CString strDollar = "6.24"; int nDollar = atoi(strDollar); nDollar then equals 6 is there another way i can do this and keep the .24? Thanks
atof
-
atof
-
Why is it that if I do a atoi on a string it trims off everything after the "."? CString strDollar = "6.24"; int nDollar = atoi(strDollar); nDollar then equals 6 is there another way i can do this and keep the .24? Thanks