This thinking makes it evident that one can judge in this way
First, the number with the most digits is larger. If the number of digits is identical, compare the digits of the number starting with the highest unit. The number with the first higher digit is the larger number.