isolating a digit

Do you know what they're trying to achieve? Unless they're trying to do something really weird, there may well be a simpler way to achieve it.