Barcodes don't store the price
Because a barcode only encodes an identifying number, the price you're charged comes from the store's point-of-sale system at the moment of scanning, not from the barcode itself. That's why a shelf tag can occasionally disagree with the price that rings up if a system update hasn't caught up yet.
Why the check digit matters more than it looks
A single smudged or poorly printed bar can cause a scanner to misread one digit. Without a check digit, that error could silently ring up a completely different product; with it, the math simply fails to add up and the scanner rejects the read instead of guessing.
Frequently Asked Questions
Can two different products ever share the same barcode?
In principle, no, since GS1 prefixes are meant to keep every company's codes unique. In practice, duplicate or reused codes do occasionally show up, especially among very small or self-published products, which is one reason large retailers still verify products before adding them to a catalog.
Why does a barcode look different sizes on different packaging?
The encoded pattern of bars is what matters, not the printed size, so barcodes are commonly scaled up or down (within a supported range) to fit different packaging while still representing the exact same number.