The CheckDigit package provides a set of functions to calculate check digits according to various algorithms and to verify whether a value ends in a valid check digit.

The following algorithms have been implemented:


Verhoeff, J. "Error Detecting Decimal Codes", Mathematical Centre Tract 29, The Mathematical Centre, Amsterdam, 1969.

Try the CheckDigit package in your browser

Any scripts or data that you put into this service are public.

CheckDigit documentation built on May 1, 2019, 7:59 p.m.