(49G) Verhoeff Check Digit Programme - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (49G) Verhoeff Check Digit Programme (/thread-3989.html) |
(49G) Verhoeff Check Digit Programme - Gerald H - 05-27-2015 06:44 AM For positive integer input the programme returns the original input and the check digit. eg For input 19530818 the programme returns 19530818 1 For more info on Verhoeff check digit see http://en.wikipedia.org/wiki/Verhoeff_algorithm Code: :: RE: HP 49G: Verhoeff Check Digit Programme - Thomas Klemm - 05-27-2015 09:29 PM Very cool! This algorithm is based on multiplication in the dihedral group D5 which is not commutative. This allows to detect all transposition errors involving two adjacent digits. There was a project where I decided to use this as the checksum digit for a numeric user ID which forced some batch-programmers to implement it in COBOL. They were not amused. Cheers Thomas |