itoa - going back to char.
OK, I was expecting to see 3 integers converted to characters and then the characters trunckated together back into an integer (like this 12 34 56 to 123456) How far off am I here?
char string2[8] = {0,0,0,0,0,0,0,0};
char gbf[2] = {0,0};
char gbi[2] = {0,0};
char gbs[2] = {0,0};
feet = abs(workc);
inch = abs((workc-feet)*12);
six = abs((((workc-feet)*12)-inch)*16);
itoa(feet,gbf,2);
itoa(inch,gbi,2);
itoa(six,gbs,2);
sprintf(string2,"%2.d%2.d%2.d", &gbf, &gbi, &gbs);
m_feet2 = atoi(string2);