To find digit in a number