|
Thanks, that does it, I also found a link to explain in even more detail the weird formula http://www.uc-council.org/checkdig.htm lets you even key in and shows the functions -----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On Behalf Of Douglas Handy Sent: Tuesday, April 02, 2002 11:16 AM To: rpg400-l@midrange.com Subject: Re: upc check digit routine Mark, >Is it not mod10 for a 12 digit upc code, or am I missing something. UPC's use a method similar to Mod10, but not exactly the same. For a standard 12-digit UPC, the odd numbered positions use a factor of 3 while the even numbered positions use a factor of 1. Take the sum of the first 11 digits (with the odd positions weighted), and the check digit is the difference to get to the next multiple of 10. Doug _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.