ABSTRACT

If a digit is found, its positional value is added [59] to N, which started out as zero |33[. Digit position LS of the input string is the ones' position, position LS-1 is the tens' position, and in general position K is the 10LS~K position. If a digit matches NUMERL(L), its value is L-l, so its positional value in the number is (L-1)*10**(LS-K). The value of the number N is the sum of the positional values of the digits. If STRING contains '8', '5', ' 1', then LS=3, KFDGT=1, and the digits are found at L=9, L=6, and L=2, so the value of the number is computed as shown at the top of the next page.