Integer to numbers - how?


i have integer - let's myint = 3710
and badly need disintegrate pieces int mynumbers[4] mynumbers[0]=3, mynumbers[1]=7, mynumbers[2] = 1, mynumbers[3]=0
how can it?  ::)

the simplest way let sprintf perform conversion you. google it.

there itoa() function, has less flexibility in how number formatted string. google it.


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Integer to numbers - how?


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums