Help with modulo. 25%10 always rounds off to 6.

Your code works for me and, although it is a bit cumbersome, I don't see how it could produce 26 from 25. It should work for any integer from 0 to 99.
Try this (and notice the code tags):

void processNumber(int number)
{
  updateDisplay(number % 10,number/10);
}

Pete