How do I convert a 2 digit number into 2 numbers


i want convert 2 digit fahrenheit reading 2 numbers eg 6,5 can send data 7 segment leds

i using led-matrix library - not happy way getting values....

does know best way "chomp" data?

int digit1 = number / 10;
int digit2 = number % 10;

:)

mikal


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > How do I convert a 2 digit number into 2 numbers


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