of barcode | 4 || 0 || 0 || 6 || 3 || 8 || 1 || 3 || 3 || 3 || 9 || 3 |- ! weight | 1 || 3 || 1 || 3 || 1 || 3 || 1 || 3 || 1 || 3 || 1 || 3 |- ! partial sum | 4 || 0 || 0 || 18 || 3 || 24 || 1 || 9 || 3 || 9 || 9 || 9 |- ! checksum | || || || || || || || || || || || 89 |} The nearest multiple of 10 that is equal to or higher than the checksum, is 90. Subtract them: 90 - 89 = 1, which is the check digit x of the barcode. For EAN-8 barcode 7351353x, where x is the unknown check digit, the check digit calculation is... {|class="wikitable" style="text-align:center" |- ! position | 7 || 6 || 5 || 4 || 3 || 2 || 1 |- ! first 7 digits of barcode | 7 || 3 || 5 || 1 || 3 || 5 || 3 |- ! weight | 3 || 1 || 3 || 1 || 3 || 1 || 3 |- ! partial sum | 21 || 3 || 15 || 1 || 9 || 5 || 9 |- ! checksum | || || || || || || 63 |} The nearest multiple of 10 that is equal to or higher than the checksum, is 70. Subtract them: 70 - 63 = 7, which is the check digit x of the barcode. Binary encoding of data digits into EAN-13 barcode The GTIN numbers, encoded to UPC-A, EAN-8 and EAN-13, all use similar encoding. The encoded data is usually repeated in plain text below the barcode. Barcode structure The barcode consists of 95 areas (also called modules) of equal width. Each area can be either white (represented here as 0) or black (represented as 1). From left to right: 3 areas for the start marker (101) 42 areas (seven per digit) to encode digits 2–7, and to encode digit 1 indirectly, as described in the following section 5 areas for the center marker (01010) 42 areas (seven per digit) to encode digits 8–13 3 areas for the end marker (101) Encoding of the digits To encode the 13-digit EAN-13 number, the digits are split into 3 groups; the