Determine the value of digits in numbers up to 10 million