A check digit is a form of redundancy check used for error detection, the decimal equivalent of a binary checksum. In Mathematics, Computer science, Telecommunication, and Information theory, error detection and correction has great practical importance in In Mathematics, Computer science, Telecommunication, and Information theory, error detection and correction has great practical importance in A checksum is a form of Redundancy check, a simple way to protect the integrity of data by detecting errors in data that are sent through space ( Telecommunications It consists of a single digit computed from the other digits in the message.
Examples
UPC
The final digit of a Universal Product Code is a check digit computed as follows:[1]
- Add the digits (up to but not including the check digit) in the odd-numbered positions (first, third, fifth, etc. The Universal Product Code ( UPC) is a barcode symbology (ie a specific type of Barcode) that is widely used in the United States and ) together and multiply by three.
- Add the digits (up to but not including the check digit) in the even-numbered positions (second, fourth, sixth, etc. ) to the result.
- If the last digit of the result is 0, then the check digit is 0.
- If the last digit of the result is not zero, then subtract the last digit from 10. The answer must equal the check digit.
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.
- We add the odd number digits 0+6+0+2+1+5 = 14, and multiply by 3 to get 14 × 3 = 42.
- We add the even number digits to this result 42+3+0+0+9+4 = 58.
- The last digit is 8, we subtract this from 10 to get 2.
ISBN 10
The 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
ISBN 13 (in use January, 2007) is equal to the EAN-13 code found underneath a book's barcode. A European Article Number ( EAN) is a barcoding standard which is a Superset of the original 12-digit Universal Product Code (UPC system Its check digit is generated the same way as the UPC, except the even digits are multiplied by 3 instead of the odd digits. [2]
EAN (GLN,GTIN, EAN numbers administered by GS1)
EAN (European Article Number) check digits (administered by GS1) - are calculated by summing the even position numbers and multiplying by 3, then adding the sum of the odd position numbers. A European Article Number ( EAN) is a barcoding standard which is a Superset of the original 12-digit Universal Product Code (UPC system GS1 is a global organization dedicated to the design and implementation of global Standards and solutions to improve the efficiency and visibility of supply and demand The final digit of the result is subtracted from 10 to calculate the check digit (or left as is if already zero). A GS1 check digit calculator and detailed documentation is online at GS1's website. GS1 is a global organization dedicated to the design and implementation of global Standards and solutions to improve the efficiency and visibility of supply and demand [3]
Other examples of check digits
- The tenth digit of the National Provider Identifier for the healthcare industry more
- The Australian Tax File Number (based on modulo 11)
- The ninth digit of a Canadian Social Insurance Number (SIN)
- The North American CUSIP number
- The International SEDOL number
- The International Securities Identifying Number (ISIN)
- The International CAS registry number's final digit. A National Provider Identifier or NPI is a unique 10-digit identification number issued to Health care providers in the United States by the Centers for Medicare Tax File Number (TFN is an 8 or 9 digit number issued by the Australian Taxation Office (ATO to each taxpayer (individual company superannuation fund partnership or trust A Social Insurance Number (SIN is a number issued in Canada to administer various government programs The acronym CUSIP typically refers to both the Committee on Uniform Security Identification Procedures and the 9-character Alphanumeric security identifiers that they SEDOL stands for Stock Exchange Daily Official List, a list of security identifiers used in the United Kingdom and Ireland for clearing purposes An International Securities Identifying Number (ISIN uniquely identifies a security. CAS registry numbers are unique numerical identifiers for Chemical compounds Polymers biological sequences mixtures and Alloys They are also referred to
- Modulo 10 check digits in credit card account numbers, calculated with the Luhn algorithm. A credit card is part of a system of Payments named after the small Plastic card issued to users of the system The Luhn algorithm or Luhn formula, also known as the " modulus 10" or "mod 10" Algorithm,is a simple Checksum formula used
- Also used in the Norwegian KID (customer identification number) numbers used in bank giros (credit transfer).
- The final character encoded in a magnetic stripe card is a computed Longitudinal redundancy check
- final digit of a POSTNET code
- final digit of an ISSN code
- final digit of a DUNS number (though this is scheduled to change, such as that the final digit will be chosen freely in new allocations, rather than being a check digit)
- The Spanish fiscal identification number (número de identificación fiscal, NIF), (based on modulo 23). A magnetic stripe card is a type of card capable of storing Data by modifying the Magnetism of tiny iron-based magnetic particles on a band of magnetic material In Telecommunication, a longitudinal redundancy check (LRC or horizontal redundancy check is a form of Redundancy check that is applied independently to Example The above-mentioned example of 55555-1237 yields Sum is 38 The check digit is therefore 2 The data encoded will An International Standard Serial Number ( ISSN) is a unique eight-digit number used to identify a print or electronic Periodical publication.
- The ninth digit of a Vehicle Identification Number (VIN).
- The ninth digit of an Israeli Teudat Zehut (Identity Card) number. For a topic outline on this subject see List of basic Israel topics. Teudat Zehut ( or biţāqat huwīya (ar بطاقة هوية in Arabic is the Israeli compulsory Identity document, as prescribed in the Identity
- The 13th digit of Former Yugoslav Unique Master Citizen Number (JMBG)
- Last check digit in EAN/UPC serialisation of Global Trade Identification Number (GTIN). The Socialist Federal Republic of Yugoslavia ( Serbo-Croatian, Bosnian, Croatian, Serbian, Slovene, Macedonian: Unique Master Citizen Number (Jedinstveni matični broj građana acronym JMBG, Јединствени матични број грађана, acronym ЈМБГ Global Trade Item Number (GTIN is an identifier for Trade items developed by GS1 (comprising the former EAN International and Uniform Code Council It applies to GTIN-8, GTIN-12, GTIN-13 and GTIN-14.
- The seventh character of a New Zealand NHI Number. New Zealand is an Island country in the south-western Pacific Ocean comprising two main landmasses (the North Island and the South Island The National Health Index (NHI number is the unique person identifier used within the New Zealand health system
Compare to check bit. In Mathematics, Computer science, Telecommunication, and Information theory, error detection and correction has great practical importance in
External links
- [1] (GS1 check digit calculator)
References
- ^ GS1 Check Digit Calculator. GS1 US (2006). Retrieved on 2008-05-21. 2008 ( MMVIII) is the current year in accordance with the Gregorian calendar, a Leap year that started on Tuesday of the Common Events 878 - Syracuse Italy is captured by the Muslim sultan of Sicily.
- ^ ISBN Users Manual. International ISBN Agency (2005). Retrieved on 2008-05-21. 2008 ( MMVIII) is the current year in accordance with the Gregorian calendar, a Leap year that started on Tuesday of the Common Events 878 - Syracuse Italy is captured by the Muslim sultan of Sicily.
- ^ Check Digit Calculator. GS1 (2005). Retrieved on 2008-05-21. 2008 ( MMVIII) is the current year in accordance with the Gregorian calendar, a Leap year that started on Tuesday of the Common Events 878 - Syracuse Italy is captured by the Muslim sultan of Sicily.
© 2009 citizendia.org; parts available under the terms of GNU Free Documentation License, from http://en.wikipedia.org
network: | |