118
UPC-E Checksum Calculation
Use the sample data of 123456 to demonstrate the UPC-E checksum calculation:
The 6 digit UPC-E code is converted to a 10-digit code, using an expansion scheme based on the sixth digit:
Because the sample UPC-E code ends in a
6
, the insertion digits
0000
are inserted at the
sixth digit
(insertion position 6):
1234500006
Add the
N
umber
S
ystem
C
haracter of 0 to the sample data:
01234500006
Use the UPC-A check digit calculation described in the previous section to produce a check digit as if it were a UPC-A code. The
check digit for the sample data is:
5
The complete 8 digit code consists of the
Number System Character
, the
original 6 digit code
and the
check digit
:
01234565
If the code ends in:
UPC-E Data
Insertion Digits Insertion Position
10 digit code
0
abcde
0
00000
3
ab
00000
cde
1
abcde
1
10000
3
ab
10000
cde
2
abcde
2
20000
3
ab
20000
cde
3
abcde
3
00000
4
abc
00000
de
4
abcde
4
00000
5
abcd
00000
e
5
abcde
5
0000
6
abcde
0000
5
6
abcde
6
0000
6
abcde
0000
6
7
abcde
7
0000
6
abcde
0000
7
8
abcde
8
0000
6
abcde
0000
8
9
abcde
9
0000
6
abcde
0000
9