checksum 2 of 5()

Creates a checksum for '2 of 5' barcodes (MOD 10). The number of characters of the barcode must be uneven. For an even number, the value must be preceded by a "0".

Parameters


Parameter

Description

a

Value to create checksum for. Note: The type of the field on which the function is executed and variables containing the value should be of type String so that leading zeros are not removed.


Examples


Parameter a

Result

12345

7

1234

Aborts with an error.

01234

8