Click or drag to resize

Verhoeff.CalculateCheckSum Method

Calculates the Verhoeff checksum digit for a string of numeric characters.

Namespace: Orthogonal.Common.Basic
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2025-03-15 14:42 GMT+11
Syntax
C#
public static int CalculateCheckSum(
	string number
)

Parameters

number  String
The input string of numeric characters.

Return Value

Int32
A check digit in the range 0-9.
Example
C#
int c = Verhoeff.CalculateCheckSum("12345");
Console.WriteLine($"Check digit is {c}");
// Check digit is 1
See Also