How barcode check digits work (EAN-13 and UPC-A, with a 10-line function)
The last digit of an EAN-13 or UPC-A barcode isn't part of the product number. It's a check digit, there so a scanner can catch a misread. The EAN-13 rule Take the first 12 digits. Counting from the l