Click or drag to resize

Damm Class

Implementation of the Damm decimal check digit algorithm. See Damm algorithm.
Inheritance Hierarchy
SystemObject
  Orthogonal.Common.BasicDamm

Namespace: Orthogonal.Common.Basic
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax
C#
public static class Damm

The Damm type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCalculateCheckSum Calculates the Damm checksum digit for a string of numeric characters.
Public methodStatic memberGenerateCheckSum Generates a Damm checksum digit suffixed string.
Public methodStatic memberValidateCheckSum Validates a string of numeric characters has a valid Damm checksum digit suffix character.
Top
Remarks
Note that unlike the Verhoeff algorithm, leading zeroes do not affect the Damm check digit. So for example 1 -> 13, 01 -> 013, 001 -> 0013. This behaviour may make Verhoeff preferable to Damm in general usage.
See Also