In Feburary 2016 29,
Locate the 12th digit in the barcode. If the check digit is not yet in place, this is the last digit from the left. If the check digit is in place, this is the second to last digit from the left.
For example, if your EAN-13 was 97 35940 56482 4, the 12th digit is the No. 2.
Starting with this 12th digit, move from right to left across the code adding every second digit to it. Using our example code of 97 35940 56482 4, this means starting with the No. 2 and adding to it the numbers 4, 5, 4, 5 and 7, giving a total of 27.
Multiply the sum obtained in Step 2 by 3. Using our example above, this means the multiplying of 27 by 3, giving a total of 81.
Locate the 11th digit in the code. Using our example code of 97 35940 56482 4, this would be the No. 8.
Starting with the 11th digit, move from right to left across the code adding every second digit to it. Using our example of 97 35940 56482 4, this means starting with the No. 8 and adding to it 6, 0, 9, 3 and 9, giving a total of 35.
Add the results from Step 3 and Step 5. In our example this means adding 81 and 35, giving a total of 116.
Round the result of Step 6 up to the nearest multiple of 10. In our example, this means rounding 116 up to 120.
Subtract the result of Step 7 from the result of Step 6. In our example, this is 120-116, giving us a difference of 4. This 4 should be the 13th number in the EAN-13, otherwise known as the check digit.
In Feburary 2016 29,
No comments:
Post a Comment