The StreamServer supports the Mod10, Mod10L, and Mod11 check digit calculation schemes. Please read the descriptions carefully before you use the functions. Relying only on the function names can sometimes be misleading. For example, Mod11 does not only do a modulo 11 calculation, but uses weight values as well.
Calculates a length check digit and a Luhn check digit. First the length check digit is calculated (length plus 2, mod 10). Then, to calculate the check digit, the length check digit is added at the end of the string and a pad 10-based check digit calculation (same as for Mod10) is performed. Both the length check digit (first) and the pad 10-based check digit are included in the returned result. Performs a Pad 11-based check digit calculation with the cycled weights 7, 9, 5, 3, 2, 4, 6, 8, starting at the end of the string. Weighted values are summed. A resulting 0 is replaced by a 5, and a resulting 10 is replaced by a 0.
OpenText StreamServe 5.6 | Updated: 2013-03-01 |