Sum of digits calculation 4-16, Algorithm,in sum of digits 4-16, Using sum of digits 4-16 – Avery Dennison Sierra Sport2 9460 Programmer Manual User Manual
Page 88: Check digit scheme w/sod 4-16, In sum of digits 4-16, Sum of digits calculation -16
![background image](https://www.manualsdir.com/files/772936/content/doc088.png)
S u m o f D i g i t s C a l c u l a t i o n
This is an example of how the printer uses Sum of Digits to calculate a
check digit for this data:
5 2 3 2 4 5 2 1 9
1.
Weights are applied to each digit, starting with the last digit in the
weight string. They are applied right to left, beginning at the right-most
position of the field. Remember, a weight string must contain at least
two different numbers. This example has a weight string of 1,2,3,4:
field:
5 2 3 2 4 5 2 1 9
weight string:
4 1 2 3 4 1 2 3 4
2.
Each digit in the field is multiplied by the weight assigned to it:
field:
5 2 3 2 4 5 2 1 9
weight string:
4 1 2 3 4 1 2 3 4
products:
20 2 6 6 16 5 4 3 36
3.
Next, the digits of the products are added together. Two-digit products
are treated as two separate digits.
This is the sum of the digits.
2 + 0 + 2 + 6 + 6 + 1 + 6 + 5 + 4 + 3 + 3 + 6 = 44
4.
Divide the sum of the digits by the modulus (10 in this case), only to the
whole number. The balance is called the remainder.
4
10 44
40
4
5.
Subtract the remainder from the modulus.
The result becomes the check digit. In this case, the check digit is 6.
10 - 4 = 6
4-16 Defining Field Options