Check digit
From Wikipedia, the free encyclopedia
Categories: Articles lacking sources from September 2007 | All articles lacking sources | Error detection and correction
A check digit is a form of redundancy check used for error detection, the decimal equivalent of a binary checksum. It consists of a single digit computed from the other digits in the message.
ExamplesUPCThe final digit of a Universal Product Code is a check digit computed as follows:
For instance, the UPC-A barcode for a box of tissues is "036000291452". The last digit is the check digit "2", and if the other numbers are correct then the check digit calculation must produce 2.
ISBN 10The final character of a ten digit International Standard Book Number is a check digit computed so that multiplying each digit by its position in the number (counting from the right) and taking the sum of these products modulo 11 is 0. The last digit (which is multiplied by 1) is the check digit, chosen to make the sum correct. It may need to have the value 10, which is represented as the letter X. For example, take the ISBN 0-201-53082-1. The sum of products is 0×10 + 2×9 + 0×8 + 1×7 + 5×6 + 3×5 + 0×4 + 8×3 + 2×2 = 98 modulo 11 (10) subtracted from 11 ≡ 1. So the ISBN is valid. While this may seem more complicated than the first scheme, it can be validated very simply by adding all the products together then dividing by 11. If the result is an integer then the ISBN is valid. ISBN 13 (in use January, 2007) is equal to the EAN-13 code found underneath a book's barcode. Its check digit is generated the same way as the UPC, except the even digits are multiplied by 3 instead of the odd digits (a UPC can be converted to EAN-13 by prefixing a 0). Other examples of check digits
Compare to check bit. External links
ReferencesContemporary Abstract Algebra by Joseph Gallian, 5th edition, Houghton Mifflin, 2002, pp. 9-14. "Modular Arithmetic in the Marketplace", by Joseph Gallian and Steven Winters, in The American Mathematical Monthly, Vol. 95, No. 6, 1988, pp. 548-551.de:Prüfziffer es:Dígito verificador eo:Kontrolkodo fr:Clé de contrôle he:ספרת ביקורת nl:Elfproef ja:チェックディジット pt:Dígito verificador ru:Контрольное число |


