Calculation of ITF14 Check Digit
For example if the data "0001234567890" is to be encoded as a barcode. The check digit is calculated as follows.
Data | 0 | 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |
Starting from the last digit, multiply by 3 followed by 1. |
| *3 | *1 | *3 | *3 | *1 | *3 | *1 | *3 | *3 | *1 | *3 | *1 | *3 |
Sum : | (0*1) + (0*3) + (0*1) + (1*3) + (2*1) + (3*3) + (4*1) + (5*3) + (6*1) + (7*3) + (8*1) + (9*3) + (0*1) = 85 |
If Sum Modulo 10 equals 0, the result is 0.
Otherwise the result is 10 - (Sum Modulo 10)
|
Modulo 10 : | 10 - (85 % 10) = 5 |
Data to be encoded | 00012345678905 |
Mapping | 00 = ' ' , 01 = '!' , 23 = '7' , 45='M' , 67='c' , 89 = 'y' , 05 = '%' |
The characters "{ !7Mcy%}" can then be keyed in to the text editor with the appropriate font selected to generate a ITF14 barcode with check digit.
Back to ITF14 Barcode Font
|