Well of course the 'has 12 digits' check is just the start. Step 1: Sum all of the digits in the odd positions together. Step 2: Mutliply the sum from Step 1 by 3. Step 3: Sum all of the digits in the even positions together. Step 4: Sum together the results from Step 2 and Step 3. Step 5: Subtract the sum of Step 4 from the next highest multiple of 10. The remainder must equal the check digit (i.e. the 12th)
On Nov 30, 6:22 pm, Tom Wilson <[EMAIL PROTECTED]> wrote: > Its quite to check if a upc is malformed, its a 12 digit number :) > > i have a few routines that work very well for me what exact problems > are you having ? > > Tom Wilson > Freelance Google Base Developer and Consultantwww.tomthedeveloper.com > > Google Base Tools -http://dev.tomthedeveloper.com/googlebase > Featured Project > :http://google-code-featured.blogspot.com/2008/02/google-base-competit... > > On Nov 28, 3:10 pm, "Nicolas (Google)" <[EMAIL PROTECTED]> wrote: > > > Hi Icebackhaz, > > > Indeed, that could be a very useful, I'll talk about it to our > > Software engineering team to see what they think. > > > Cheers, > > Nicolas > > > On Nov 27, 10:56 pm, icebackhaz <[EMAIL PROTECTED]> wrote: > > > > OK. I copied that question to the correct group, but can't help > > > wondering if having the validation routines available in the API > > > wouldn't help us poor slobs make nice clean entries (not to mention > > > test suites) before finding out on the "data quality" page that a UPC > > > was ill-formed or what have you. > > > > On Nov 27, 6:10 am, "Nicolas (Google)" <[EMAIL PROTECTED]> wrote: > > > > > Hi icebackhaz, > > > > > Could you post this question on the general Google Base Help forum > > > > since it's not API related? > > > > The link to the > > > > forum:http://groups.google.com/group/base-help-discussion > > > > > Thanks > > > > Nicolas > > > > > On Nov 25, 4:19 pm, icebackhaz <[EMAIL PROTECTED]> wrote: > > > > > > Is there a public definition of the validation process to which the > > > > > items submitted are subjected? Also, at what point is the per-value > > > > > validation applied (i.e. the checks which fill the data quality > > > > > report) ? Any pointer, even raw conjecture much appreciated. > > > > > > TIA --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Base Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Base-data-API?hl=en -~----------~----~----~----~------~----~------~--~---
