# calculating check digit. formula issue

• Clare6
• Born
• Joined: May 23, 2012
• Posts: 2
• Status: Offline

May 28th, 2012, 8:24 pm

"The problem is I am computing the checksum for a UPC-13 barcode, or a EAN-13 barcode. It is 13 digits long anyway. For example:
9780450022852
I know some data should be multiple by 3, then sum up all the data.
93+7+0+5+0+2+5=112 Then 120 - 112 = 8
This is the checksum I got. Then I tried online tools, the check digit showed as 2.
Hope someone could let me know simple steps.
"
• Anonymous
• Bot
• Joined: 25 Feb 2008
• Posts: ?
• Loc: Ozzuland
• Status: Online

May 28th, 2012, 8:24 pm

• Prescott sheperd
• Born
• Joined: May 24, 2012
• Posts: 2
• Status: Offline

May 29th, 2012, 8:54 pm

It really waste of time to calculate checksum yourself. Have a try of this EAN 13 generator for .NET. And you will be able to enable or disable the checksum digit in the HR text. http://www.keepautomation(dot)com/products/net_barcode/barcodes/ean_13.html
• Eli999
• Born
• Joined: May 23, 2012
• Posts: 2
• Status: Offline

May 29th, 2012, 8:59 pm

You just miss the last step that is adding the remainder to 10. The checksum should be 10-8=2. I think you needn`t to calculate the checksum yourself. If you installed the barcode control, it will compute the checksum for you automatically.
• King smith
• Born
• Joined: May 24, 2012
• Posts: 1
• Status: Offline

May 29th, 2012, 9:01 pm

Are you using a font for the generation of EAN13? If you use a EAN13 barcode control which supports your developmental environments, you will not need comput the check digit manually.
• JasonN
• Born
• Joined: May 25, 2012
• Posts: 1
• Status: Offline

May 30th, 2012, 12:35 am

If you want to learn the algorithm of EAN-13, you can navigate to Wikipedia: http://en.wikipedia(dot)org/wiki/EAN-13
• Born
• Joined: Feb 22, 2013
• Posts: 1
• Status: Offline

February 22nd, 2013, 1:49 am

If you need to create ean13 barcode , I recommend Barcode Generator for .NET for you.
It is an easy-to-use .NET barcode generating DLL, which supports .NET 2.0 and later version to be used in Visual Studio 2005, VS 2008 and VS 2010.
And the project will calculate check digit automatically.
Hope it helps!

## Post Information

• Total Posts in this topic: 6 posts
• Users browsing this forum: Bigwebmaster and 161 guests
• You cannot post new topics in this forum
• You cannot reply to topics in this forum
• You cannot edit your posts in this forum
• You cannot delete your posts in this forum
• You cannot post attachments in this forum

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.