Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 926 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 926 Bytes

DAMM Check Digit Verification in C#/Delphi/MSSQL

Installation

C# and Delphi : Compile and run MSSQL : Set database name and execute to create function

Information

DAMM encoding addresses the two most common trascription errors which are single digit mistype and transposed characters. Ie. 1121 (should be 1221) and 6933 (should be 9633).

It is superior to other checksum calculations such as:

Sum Only - n1+n2+n3...nx - use lowest denominator as checksum
Sum and Multiply - (((((n1+n2)*n3)+n4)+n5)...nX) - use lowest denominator as checksum

Usage

C# and Delphi

When prompted enter digits including DAMM checksum. Program will tell if value has a vaid DAMM checksum. To finish enter a blank value.

MSSQL

Call it directly in SSMS or use it inside stored procedures. Example: use print dbo.fn_CheckDAMM( 1234 ) Result should be 5

License

Open license