Example. 123456, and we want the third from the right (\'4\') out.
The idea in practise is to access each digit seperately (ie. 6 5 4 3 2 1).
C/C++/C# preferred.
You could try a bitwise shift-left (for N-1) and then read the digit at [0], as this could be an assembler approach.
123456 -> 456 -> read first digit