It would be intersting to see the application of the above function how it seperates a digit from 25 in one go (concurrent execution of % and / operators) instead of using the conventional two-line approach that I follow.
byte y = 25; //d0d1 = 25
byte d1 = y%10; //d1 = 5
y = y/10
//------------
byte d0 = y%10; //d0 = 2
y = y/10;