Script functions reference > Script functions in alphabetical order > M > Mod11

Mod11
Syntax
Mod1l(str)
str 
Description
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.
Returns
A string specifying a single digit number (0-9).
Example
$total = "11234567";
$chk = mod11($total);
OpenText StreamServe 5.6 Updated: 2013-03-01