write a long number in a string

Hello,

my first question here. is it possible to convert a long number to a string (736823... ==>7,2,6,8,2,3,...)?

I think this does the job:

#include <stdio.h> 

char qq[40];
unsigned long int z=736823;
sprintf(qq,"Apple %ld",z);
Serial.println(qq);
delay(1000);

Well, here you get “Apple 736823”, just remove the chars "Apple " that I wrote to make the example a bit more complex. Let me know if it works.

The ardunio environment also seems to include a version of the non-standard function itoa() (integer to ascii)

int pi = 314159265;
char pitextt[20];

itoa(pi, pittext, 10);  /* radis for conversion is 10 */

itoa() is likely to take considerably less code space than sprintf()