COMPUTING THE CHECKSUM DIGIT
PostNet bar codes always include a modulo 10 check digit.
Before a PostNet symbol may be encoded, a checksum digit must be calculated to be
subsequently appended to the end of the bar code. The checksum digit is a simple
modulo 10 calculation of the sum of the all the digits that are being coded.
The steps for calculating the check digit are as follows:
- Sum the total of all individual digits being encoded. For example, 80122-1905 would be calculated as 8 + 0 + 1 + 2 + 2 + 1 + 9 + 0 + 5 = 28.
- Determine the value that, when added to the sum, produces a value evenly divisible by 10. For example, 28 + 2 = 30, so the value is 2.
- The check digit is the value calculated in step 2. In this case the check digit is 2.