# IncludeTrailingCheckDigit

Parameter `IncludeTrailingCheckDigit` defines whether to include the trailing check digit in the byte result.

## JSON Structure

**Location in template:**
```
BarcodeFormatSpecificationOptions[i]
    └── IncludeTrailingCheckDigit
```

**Parent object:** [BarcodeFormatSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-format-specification/index.md) object

**Example:**

```json
{
    "IncludeTrailingCheckDigit": 1
}
```

> [!NOTE]
> - This snippet shows only the `IncludeTrailingCheckDigit` parameter.
> - To use it, embed this parameter within a [BarcodeFormatSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-format-specification/index.md) object.
> - For the complete JSON structure, see:
>   - [Full JSON Structure](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/index.md#full-json-structure)
>   - [Minimal Valid JSON](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/index.md#minimal-valid-json-example)

## Parameter Details

The structure of the `IncludeTrailingCheckDigit` is shown as follow:

| IncludeTrailingCheckDigit  Parameter Details |
| :--------------------------------- |
| **Type**<br>*int* |
| **Range**<br>[0, 1] |
| **Default Value**<br>0 |

**Remarks**

- 0: exclude.
- 1: include.
- This parameter is valid only for Code 128.
- Introduced in version 11.0.4000.
- Changed the default value to 0 from 1 in version 11.2.1000
