Here's a way to get the number 5 out of the number 10500: 10500->A 3->B ; B is the digit in the number: 3 = thousands place iPart(10fPart(A/10^B->C C now contains 5 -Jonathan