Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #Formula to calculate the check digit for a 13 digit identity number
  2.  
  3. According to the provisions of the Identification Amendment Act, 2000 (Act No. 28 of 2000,
  4. which was promulgated on 13 October 2000) all forms of identity documents other than the
  5. green bar-coded identity document are invalid.
  6. ## [my observation: the following algorithm appears to work for the older 'blue'-book id numbers as well].
  7. In accordance with the legislation,
  8. the control figure which is the 13th digit of all identity numbers which have 08 and 09 is
  9. calculated as follows using ID Number 800101 5009 087 as an example:
  10.  
  11. - Add all the digits in the odd positions (excluding last digit).
  12. 8 + 0 + 0 + 5 + 0 + 0 = 13...................[1]
  13. - Move the even positions into a field and multiply the number by 2.
  14. 011098 x 2 = 22196
  15. - Add the digits of the result in b).
  16. 2 + 2 + 1 + 9 + 6 = 20.........................[2]
  17. - Add the answer in [2] to the answer in [1].
  18. 13 + 20 = 33
  19. - Subtract the second digit (i.e. 3) from 10.
  20. - The number must tally with the last number in the ID Number. If the result is 2 digits, the last digit is used to compare against the last number in the ID Number.
  21. - If the answer differs, the ID number is invalid.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement