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?
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
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
Post a Comment