It is a single digit computed from the other digits in the message. With a check digit, one can detect errors from the input of a series of digits.
Questions tagged [check-digit]
41 questions
0
votes
1 answer
What is the algorithm of generating the code on 100 USD banknote?
I am designing the primary key for storing product. I look around to find some insight how to design the ID as using auto increment is too boring. Do any one know that the code 'KB46279860I' on the below banknote meaning?
100 USD picture
I think…

Sacbmcpd Samuel
- 105
- 2
- 7
0
votes
2 answers
Getting type error in python when using for loop
I'm sure this will be a very basic question for you, but I'm making a ISBN check digit calculator for my computing class. My current code is this:
isbn = []
results = []
print("Please input your ISBN 1 number at a time")
def isbn_input():
…

user3143129
- 15
- 4
0
votes
2 answers
Calculate check digit for UPC-A barcode
I'm currently working on a windows form in VS2010 that is supposed to create UPC-A for new part numbers and store them in a database. So far I'm still trying to get the pieces together and I'm having issues with calculating the check digit. I came…

campagnolo_1
- 2,710
- 1
- 17
- 25
0
votes
2 answers
Why is my ASCII char to int conversion failing?
According to the chart here:
http://www.idautomation.com/barcode-faq/code-128/
This character:
Ë
equates to the value 103.
Yet this code:
string barcode = textBoxRawCode128.Text.Trim();
. . .
int runningTotal = ConvertToASCIIInt(barCode[0]);
. .…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
-1
votes
2 answers
How to concatenate two integer numbers into a String (python)?
Trying to calculate a check-digit and add it to the end of generated credit card. So i want to concatenate two integers into a string.
Problem is that this chunk of code generates a LIST of numbers rather than a number itself..
checkDigit = 0
while…

raccoon369
- 7
- 2
-1
votes
1 answer
code 128 barcode in c# wrong check digit for one barcode
I have been using the code from here to convert three digit numbers to barcodes for scanning in the company I work for.
I have only found a problem with one barcode. When it encodes "002" it outputs "Ì002 Î". I have found that this will not scan…

phpNovice
- 1
- 1
- 4
-1
votes
2 answers
32 hexadecimal digit string output
Hey all I have the following 32 hexadecimal digit string:
0x80000000000000003F64000000000000
And when I need to take that number above and look up something with it I need it to be searchable in this type of…

StealthRT
- 10,108
- 40
- 183
- 342
-1
votes
1 answer
Python Attribute error with ISBN program
I've just fixed my ISBN checkdigit code to be a bit more efficient, but now it's coming back with an attribute error:
AttributeError: 'int' object has no attribute 'append'
Here's the code:
isbn = 0
result = 0
results = 0
print("Please input your…

user3143129
- 15
- 4
-2
votes
3 answers
Python3 check digit algorithm
I'm learning to wrap my head around programming and have been given the following task:
The ISBN (International Standard Book Number) is made out of 10 digits.
z1z2z3z4z5z6z7z8z9z10
The last digit z10 is a check-digit. It's made like this: First,…

KVMVSVBI
- 21
- 1
- 4
-3
votes
1 answer
Get check digit (Mod 11) implementation in c#
Can anyone give me the code in C#... for getting the Verification Digit with Mod11?
Thanks.
public class Mod11
{
public static string AddCheckDigit(string number);
}
Example:
Mod11.AddCheckDigit("036532");
Result: 0365327

Fraga
- 1,361
- 2
- 15
- 47
-5
votes
1 answer
Coding java program to calculate check digit numbers
I have this java project(using eclipse) that calculates check digit numbers. I'm stuck on how to code this one.
The check has a check digit so that it makes the sum of the sights including the check digit divisible by 7. Assume there are always…

user2860253
- 31
- 1
- 8