//Matt G. //onion@doorcreekorchard.com //July 2008 char* tempToAscii(double temp) { char ascii[32]; int frac; frac=(unsigned int)(temp*1000)%1000; //get three numbers to the right of the deciaml point itoa((int)temp,ascii,10); strcat(ascii,"."); itoa(frac,&ascii[strlen(ascii)],10); //put the frac after the deciaml return ascii; }