i came up with this.
private static int number, h, o, t; h = number/100; t = (number-(h*100))/10; o = ((number-(h*100))-(t*10));
but this can only convert numbers up to 999. what i want to do is to convert numbers up to 9999.
what is the formula for the thousands place? are my formulas correct?