Can anyone give me the code in C#... for getting the Verification Digit with Mod11?
Thanks.
public class Mod11
{
public static string AddCheckDigit(string number);
}
Example:
Mod11.AddCheckDigit("036532");
Result: 0365327
Can anyone give me the code in C#... for getting the Verification Digit with Mod11?
Thanks.
public class Mod11
{
public static string AddCheckDigit(string number);
}
Example:
Mod11.AddCheckDigit("036532");
Result: 0365327
Copyright © 2021 Jogjafile Inc.
The code is here:
I hope it help some one.
PROBLEMS: If the remainder from the division is 0 or 1, then the subtraction will yield a two digit number of either 10 or 11. This won't work, so if the check digit is 10, then X is frequently used as the check digit and if the check digit is 11 then 0 is used as the check digit. If X is used, then the field for the check digit has to be defined as character (PIC X) or there will be a numeric problem.