The Perl Advent Calendar needs more articles for 2022. Submit your idea today!

### Algorithm::CheckDigits - Perl extension to generate and test check digits River stage one • 4 direct dependents • 7 total dependents 3 ++

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M09_001 - compute check digits for Euro notes River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Letters are replaced with their position in the alphabet ('A' = 1, ...). 2 The total of the digits of all numbers is computed. 3 This sum is taken modulo 9. 4 The check digit is the difference between 8 and the number of step 3. To valida...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M16_001 - compute check digits for ISAN River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 "a(1) = 16" "b(i) = a(i) % 17 +d(i)", where d(i) is the decimal value of the hexdigit at position *i*. "c(i) = b(i) % 16" "a(i) = c(i-1) * 2", for *i* greater than 1 2 Beginning left for each *i* = 1..16, "a", "b", "c" are computed. 3 The...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M11_013 - compute check digits for VAT Registration Number (GR) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Beginning right with the digit before the checkdigit all digits are weighted with 2 ** position. I. e. the last digit is multiplied with 2, the next with 4, then 8 and so on. 2 The weighted digits are added. 3 The sum from step 2 is taken...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::MXX_002 - compute check digits for CAS River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Beginning right with the second digit all digits are weighted ascending starting with 1. 2 The sum of those products is computed. 3 The checksum is the last digit of the sum from step 2 (modulo 10). METHODS is_valid(\$number) Returns true ...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M10_010 - compute check digits for Postscheckkonti (CH) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 The sequence of digits is processed left to right. For the first digit we assume a carry forward of 0. 2 For each digit d(i) the carry forward cf(i) is the digit at the the position p in the sequence ( 0, 9, 4, 6, 8, 2, 7, 1, 3, 5 ), wher...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M11_003 - compute check digits for PKZ (GDR) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 The checkdigit is set to 0. 2 From right to left the digits are weighted (multiplied) with 2,4,8,5,10,9,7,3,6,1,2,4. 3 The products are added. 4 The sum of step 3 is taken modulo 11. 5 The value of step 4 is added to a multiple (0..9) of ...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M11_017 - compute check digits for EC-No, EINECS, ELINCS River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 From left to right all digits are multiplied with their position in the sequence. 2 The sum of all products is computed. 3 The sum of step 2 is taken modulo 11. The checkdigit is the last digit of the result. METHODS is_valid(\$number) Ret...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M10_006 - compute check digits for Rentenversicherung (DE) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 The letter is replaced with a two-figure number appropriate to the position of the letter in the german alphabet. 2 Beginning left all numbers are weighted with 2,1,2,5,7,1,2,1,2,1,2,1. 3 The the total of the digits of all products is com...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M11_008 - compute check digits for VAT Registration Number (DK) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Beginning left every digit is weighted with 2, 7, 6, 5, 4, 3, 2, 1 2 The weighted digits are added. 3 The sum from step 2 is taken modulo 11. 4 The number is valid if the sum from step 3 is zero (0). METHODS is_valid(\$number) Returns true...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M10_011 - compute check digits UPS (US) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Beginning left all numbers are weighted alternatively 1 and 2. 2 The sum of all products is computed. 3 The sum of step 3 ist taken modulo 10. 4 The check digit is the difference between 10 and the number from step 3. METHODS is_valid(\$nu...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M11_007 - compute check digits for VAT Registration Number (FI) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Beginning left every digit is weighted with 7,9,10,5,8,4,2. 2 The weighted digits are added. 3 The sum from step 2 is taken modulo 11. 4 The checkdigit is 11 minus the sum from step 3. Is the difference 10, the number won't be taken. If t...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::MXX_001 - compute check digits for german Personalausweis (pa_de) or ABA routing numbers (aba_rn) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Beginning left all digits are weighted with 7,3,1,7,3,1,... for *pa_de* or 3,7,1,3,7,1,3,7,1 for *aba_rn*. 2 The sum of those products is computed. 3 For *pa_de* the checksum is the last digit of the sum from step 2 (modulo 10). For *aba_...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M10_004 - compute check digits for 2aus5, EAN, ILN, ISBN13, NVE River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Beginning right all numbers are weighted alternatively 1 and 3 (that is the check digit is weighted 1). 2 The sum of all products is computed. 3 The sum of step 3 ist taken modulo 10. 4 The check digit is the difference between 10 and the...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M10_003 - compute check digits for ISMN River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 The 'M' as the first number gets the value 3. Beginning left all numbers are weighted alternatively 3 and 1. 2 The sum of all products is computed. 3 The sum of step 3 ist taken modulo 10. 4 The check digit is the difference between 10 an...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M11_016 - compute check digits vor VAT Registration Number (PL) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Beginning left every digit is weighted with 6, 5, 7, 2, 3, 4, 5, 6, 7 2 The weighted digits are added. 3 The sum from step 2 is taken modulo 11. 4 The checkdigit is 11 minus the sum from step 3. Is the difference 10, the number won't be t...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M11_002 - compute check digits for PZN (DE) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 From left to right beginning with the first position all digits are multiplied with 2,3,4,... 2 The sum of all products is computed. 3 The checkdigit ist the sum of step 2 taken modulo 11. 4 If the checkdigit is '10' the whole number is n...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M89_001 - compute check digits for VAT Registration Number (LU) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 The checksum is the whole number taken modulo 89. METHODS is_valid(\$number) Returns true only if \$number consists solely of numbers and the last digit is a valid check digit according to the algorithm given above. Returns false otherwise,...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::MXX_005 - compute check digits for ESR9 (CH) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Digits are processed left to right. For the first digit applies the balance is 0. 2 The new balance is taken from the balance table according to the current balance (row) and the digit (column). 3 The check digit is the difference from th...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC

### Algorithm::CheckDigits::M10_009 - compute check digits for Betriebsnummer (DE) River stage one • 4 direct dependents • 7 total dependents 3 ++

ALGORITHM 1 Beginning left all numbers are weighted alternatively 1 and 2. 2 The total of the digits of all products is computed. 3 The sum of step 3 ist taken modulo 10. 4 The check digit is the difference between 10 and the number from step 3 taken...

/Algorithm-CheckDigits-v1.3.6 - 16 Nov 2021 11:20:05 UTC
48 results (0.034 seconds)