NEWTC



  • HOME
  • Customer Center
  • FAQ


hit : 2,935
title How to convert (source) number into string
name admin 11-08-29 21:48

#include <stdlib.h>

int i;
//TIP 1

itoa(buff, i, 10);              //  Convert number into string.
        printf("%s\r\n",buff);     // Check the altered data with Serial.
        writelcd(0,0,buff);           // Samples that distribute altered data to lcd.

// TIP 2
        sprintf(buff,"%d",i);         //  Convert number into string.
        printf("%s\r\n",buff);    // Check the altered data with Serial.
        writelcd(0,0,buff);          // Samples that distribute altered data to lcd.