The following is an example of check digiting for the Contribution
Report scan line utilizing MOD-10, product addition, remainder, using 2, 4, 8, 16, 32, 64,
etc. as the weights.
Sample scan line: 1 283436 4 934 0264 6 0394 934 8
To calculate the check digit for the account number:
| Value |
x |
Weight |
= |
Result |
| 2 |
x |
2 |
= |
4 |
| 8 |
x |
4 |
= |
32 |
| 3 |
x |
8 |
= |
24 |
| 4 |
x |
16 |
= |
64 |
| 3 |
x |
32 |
= |
96 |
| 6 |
x |
64 |
= |
384 |
| Add results: |
604 |
| Remainder is the check digit: |
4 |
To calculate the grand check digit for the entire scan line: