4580 4580 4580 4580
4580 4580 4580 4580
X
2121 2121 2121 2121
[for checking always start on the
right from the digit 1]
----------------------------
8570 8570 8570 8570
Note that we perform single digit multiplication, top line by bottom line, right to left:
0 X 1 = 0
8 X 2 = 16 -> 1+6 = 7
5 X 1 = 5
4 X 2 = 8
etc...
8+5+7+0+8+5+7+0+8+5+7+0+8+5+7+0 = 80
4580 1234 5678 9012
X
2121 2121 2121 2121
----------------------------
8570 2264 1658 9022
Again from the right column
2X1=2, 1X2=2, 0X1=0, 9X2=18=>1+8=9, 8X1=8
etc...
8+5+7+0+2+2+6+4+1+6+5+8+9+0+2+2 = 67
---> INVALID!! right digit needs to be 0 to be valid!
1234
X
1212
------
1438
1+4+3+8 = 16 -> 10-[right digit] -> 10-6=4
THIS IS THE CHECKDIGIT
12344
X
12121
--------
14384
1+4+3+8+4 = 20
YUP! CORRECT!!
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)