Code Format
The format of the ISSN is an eight digit number, divided by a hyphen into two four-digit numbers. The last digit, which may be 0–9 or an X, is a check digit. The ISSN of the journal Hearing Research, for example, is 0378-5955, the check digit is 5.
To calculate the check digit, the following algorithm may be used:
- Calculate the sum of the first seven digits of the ISSN multiplied by its position in the number, counting from the right — that is, 8, 7, 6, 5, 4, 3, and 2, respectively:
- .
- The modulus 11 of this sum is then calculated: divide the sum by 11 and determine the remainder.
- .
- If there is no remainder the check digit is 0, otherwise the remainder value is subtracted from 11 to give the check digit:
- 5 is the check digit.
- An upper case X in the check digit position indicates a check digit of 10.
To confirm the check digit, calculate the sum of all eight digits of the ISSN multiplied by its position in the number, counting from the right (if the check digit is X, then add 10 to the sum). The modulus 11 of the sum must be 0.
Read more about this topic: International Standard Serial Number
Famous quotes containing the word code:
“Wise Draco comes, deep in the midnight roll
Of black artillery; he comes, though late;
In code corroborating Calvins creed
And cynic tyrannies of honest kings;
He comes, nor parlies; and the Town, redeemed,
Gives thanks devout; nor, being thankful, heeds
The grimy slur on the Republics faith implied,
Which holds that Man is naturally good,
Andmoreis Natures Roman, never to be
scourged.”
—Herman Melville (18191891)