parse one digit into a number