float temperature = 1234.56; //melting iron [COLOR=Red]char temperature_string[33];[/COLOR] //recommended string length int main(void) { volatile static int i = 0 ; while(1) { i++ ; itoa((int)(temperature*100),&temperature_string[0],10);//convert with decimals } return 0 ; } |