toretore / barby

The Ruby barcode generator
http://toretore.github.com/barby/
MIT License
844 stars 169 forks source link

Issue with extra 13 digits in EAN-13 barcode generation #71

Closed lucasgerard closed 8 years ago

lucasgerard commented 8 years ago

Hi,

I'm creating a barcode using EAN13, and the 12-digits data '000007558622'. However, as I scan the barcode I get an extra random digit on the right, reading a 13-digits code.

Any idea where does it come from?

toretore commented 8 years ago

It's the check digit, which in your case is a 5.