Rules and considerations for MOD10 operations

Last Updated : Sep 08, 2012 |
Prolog information
The following rules and considerations apply to MOD10 operations.
Results
Operand1
Operand2
Field length
6
6
6
Entries allowed
[A-Z, AA-ZZ]
digits
[A-Z, AA-ZZ]
V1-V9
digits
none
[A-Z, AA-ZZ]
V1-V9
digits
none
numeric values 0-9999999999999999
Variable or digits buffer contents
#, 0-9
  • none, #, 0-9999999999999999
  • Leading zeros allowed (007 = 007)
Variable or digits buffer evaluation
  • If the numeric value of operand2 is greater than the number of digits in operand1, then the results = #
  • Valid modulus 10 or Luhn results = 0-9.
  • none = none
  • # = none
  • Leading zeros retained
  • none = #
  • # = #
  • Greater than 16 = #
  • Leading zeros ignored (007 = 7)
Start and length parameters
Do not apply start or length definitions. Start and length are always 1.
N/A
N/A