Control Digit
The control digit is calculated as the modulus 10 of 10 minus the modulus 10 of the sum of the modulus 10 of the product of the first 17 digits by its weight factor.
The first 17 digits of the CLABE are, as mentioned above, the Bank Code, the Branch Office Code and the Account Number.
The weight factor of a given digit is:
- 3 if its position (starting at 0) modulus 3 is 0
- 7 if its position modulus 3 is 1
- 1 if its position modulus 3 is 2
The method is:
- For every digit, multiply it by its weight factor and take their modulus 10 (modulus is the Remainder of the integer division. The modulus X of a baseX number is its rightmost digit).
- Sum all of the calculated products, and take modulus 10 again.
- Subtract the sum to 10, take modulus 10, and you have the resulting control digit.
So, as an example:
| Bank | Branch | Account Number | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 17 CLABE digits | 0 | 3 | 2 | 1 | 8 | 0 | 0 | 0 | 0 | 1 | 1 | 8 | 3 | 5 | 9 | 7 | 1 |
| × | |||||||||||||||||
| Weight factors | 3 | 7 | 1 | 3 | 7 | 1 | 3 | 7 | 1 | 3 | 7 | 1 | 3 | 7 | 1 | 3 | 7 |
| = ( % 10 ) | |||||||||||||||||
| Products, modulus 10 | 0 | 1 | 2 | 3 | 6 | 0 | 0 | 0 | 0 | 3 | 7 | 8 | 9 | 5 | 9 | 1 | 7 |
| Product sum, modulus 10 | 1 | ||||||||||||||||
| 10 - sum, modulus 10 | 9 (control digit) | ||||||||||||||||
And so, the complete CLABE is: 032180000118359719
Read more about this topic: CLABE
Famous quotes containing the words control and/or digit:
“In Vietnam, some of us lost control of our lives. I want my life back. I almost feel like Ive been missing in action for twenty-two years.”
—Wanda Sparks, U.S. nurse. As quoted in the New York Times Magazine, p. 72 (November 7, 1993)
“Bless my soul, Sir, will you Britons not credit that an American can be a gentleman, & have read the Waverly Novels, tho every digit may have been in the tar-bucket?”
—Herman Melville (18191891)