How to check that for given natural numbers "a" and " b", a digit at a position "i" from number "b" is less than the digit at position "i" at number "a" without iterating digit by digit?
e.g.
for :
a = 22222
b = 10001 is ok but b= 10030 is not ok.
I know that in case digits are less or equal then the subtraction can be done without "borrowing" but how can I validate if a subtraction was done with "borrowing" or not ?