MOST RECENT NEWS - WE MOMENTARILY RENEW
4
现在国际上通用的check digit的算法有很多种,例如:UPC、ISBN、 CUSIP。。。等等。。
这里重点解释下ISBN
下面是这次开发中写的,需要用到的规则:
类似的check digit的算法还有:
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.
Modulo 10 check digits in credit card account numbers, calculated with the Luhn algorithm.
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).
The ninth digit of a Vehicle Identification Number (VIN).
The ninth digit of an Israeli Teudat Zehut (Identity Card) number.
The 13th digit of Former Yugoslav Unique Master Citizen Number (JMBG)
Last check digit in EAN/UPC serialisation of Global Trade Identification Number (GTINs). It applies to GTIN-8, GTIN-12, GTIN-13 and GTIN-14.
The seventh character of a New Zealand NHI Number. >
这里重点解释下ISBN
引用
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 (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).
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).
下面是这次开发中写的,需要用到的规则:
类似的check digit的算法还有:
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.
Modulo 10 check digits in credit card account numbers, calculated with the Luhn algorithm.
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).
The ninth digit of a Vehicle Identification Number (VIN).
The ninth digit of an Israeli Teudat Zehut (Identity Card) number.
The 13th digit of Former Yugoslav Unique Master Citizen Number (JMBG)
Last check digit in EAN/UPC serialisation of Global Trade Identification Number (GTINs). It applies to GTIN-8, GTIN-12, GTIN-13 and GTIN-14.
The seventh character of a New Zealand NHI Number. >
作者:博爱老头@博爱老头的草屋
地址:http://www.icnote.com/ISBN-check-digit-generator/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!





Waiting for fedora 9 ,so long......
こっち,被TX和谐了?






