October 22, 2003

M10 Self Check Digit Algorithm

In case you need it, here it is:

X = 45678123

Take the odd digit positions, counting from the right (3175)
Multiply this number by 2 to get 6350.

Take the even digit positions, starting from the right (2864)

Prepend these to 6350 to arrive at 28646350

Add the sum of the digits to get 34.

Subtract this number from the next highest multiple of 10, (40 ?34 = 6)

The Mod10 self check digit is 6.

Posted by Elyse at October 22, 2003 9:09 PM
Comments

Thanks...works a treat....

Posted by: Paul Butterworth at April 11, 2005 6:05 AM