EAN13 Check digit example error?
2 posts • Page 1 of 1
EAN13 Check digit example error?
Trying to understand the check digit calc for EAN13 I notice the examples sheet on the website [http://www.morovia.com/education/utility/upcean.asp] shows the odd and even position of digits to be just the opposite from the other barcodes, is that right? Shouldn't the 1st, 3rd, 5th etc digits be the odd digits of a number and 2nd, 4th and 6th be the even digits?
In the example for number 101742256780 The numbers being added as the odd numbers in step 2 is 0+7+2+5+7+0 *3 =63 From my point of view it should have been 1+1+4+2+6+8 *3 =66.
In step 3 it adds all the even position digits and uses 1+1+4+2+6+8 =22. I believe it should have been 0+7+2+5+7+0 =21.
Step 4 says to sum the results of step 3 and 4 but probably meant sum the results of step 2 and 3. In step 4 the example shows 63+22=85. I come up with 66+21=87
Step 5 says to Divide the results by 10 and the check digit is the number to add to the remainder to get 10. The example starts with 85 / 10 giving a remainder of 5. 10  5 = 5. I come up with 87/10 giving a remainder of 7. 10  7 = 3. Yet when I put the number in the website calculater it shows the check digit to be 5, the same as the example. Do different symboligies actually change which digits are odd and which are even? Is the example wrong and if so is the calculator program wrong too?
In the example for number 101742256780 The numbers being added as the odd numbers in step 2 is 0+7+2+5+7+0 *3 =63 From my point of view it should have been 1+1+4+2+6+8 *3 =66.
In step 3 it adds all the even position digits and uses 1+1+4+2+6+8 =22. I believe it should have been 0+7+2+5+7+0 =21.
Step 4 says to sum the results of step 3 and 4 but probably meant sum the results of step 2 and 3. In step 4 the example shows 63+22=85. I come up with 66+21=87
Step 5 says to Divide the results by 10 and the check digit is the number to add to the remainder to get 10. The example starts with 85 / 10 giving a remainder of 5. 10  5 = 5. I come up with 87/10 giving a remainder of 7. 10  7 = 3. Yet when I put the number in the website calculater it shows the check digit to be 5, the same as the example. Do different symboligies actually change which digits are odd and which are even? Is the example wrong and if so is the calculator program wrong too?
 dmontroy
 Posts: 1
 Joined: Fri Oct 08, 2010 2:12 pm
Re: EAN13 Check digit example error?
The position assignment starts from right to the left, with the right most digit odd position. Some docs may say otherwise for example counting from left to right, they are also correct in some cases (for example, UPCA) but not universally correct.
Our algorithm applies on all mod10 cases  UPCA, EAN13, SSCC14.
Our algorithm applies on all mod10 cases  UPCA, EAN13, SSCC14.
The information above is provided "AS IS", with no warranties, and confers no rights.

glitch  Support Engineer
 Posts: 196
 Joined: Wed May 14, 2008 2:42 pm
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest