| VerhoeffCalculateCheckSum Method |
Calculates the Verhoeff checksum digit for a string of numeric characters.
Namespace: Orthogonal.Common.BasicAssembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax public static int CalculateCheckSum(
string number
)
Parameters
- number String
- The input string of numeric characters.
Return Value
Int32A check digit in the range 0-9.
Example int c = Verhoeff.CalculateCheckSum("12345");
Console.WriteLine($"Check digit is {c}");
See Also