##### Page tree
Go to start of banner

# UCC-128 SSCC Check Digit Calculation

## Description

How is the check digit for a UCC-128 SSCC barcode calculated?

## Solution

The following steps detail the calculation of a UCC-128 SSCC check digit:

### Sample

(00)00872150999000002
Disregard the application identifier:
(00)
The UCC SSCC barcode uses a function code 1. Therefore, 1 is the first digit in the string to evaluate.
Therefore, the string to evaluate is:
100872150999000002

1. Starting from position 2 of the number, add up the values in even numbered positions.
0 + 8 + 2 + 5 + 9 + 9 + 0 + 0 + 2 = 35
2. Multiply the result of step 1 by 3.
35 x 3 = 105
3. Starting from position 3 of the number, add up the values of the digits in odd-numbered positions:
0 + 7 + 1 + 0 + 9 + 0 + 0 + 0 = 17
4. Add up the results of steps 2 and 3.
105 + 17 = 122
5. The check character is the smallest number that when added to the result obtained in Step 4 gives a number that is a multiple of 10.
122 + x = 130 (multiple of 10)

Eight is the number that when added to 122 results in a multiple of 10. Therefore, the check character is 8.

2009096

## Versions

All versions of Loftware

## Environment

All supported installation environments.