This algorithm is used for retail barcodes and ISBN-13 book numbers.
Append "1" to your number to form the complete, scannable code: 4006381333931.
Check digits catch single-digit transcription errors and most adjacent-digit transpositions (like swapping 2 and 3), but cannot detect all two-digit errors.
Next stepKeep a record of the full number including the check digit, as scanners will reject codes with a missing or incorrect check digit.