Function gs1::checksum::gs1_checksum

source ·
pub fn gs1_checksum(input: &str) -> u8
Expand description

Calculate a GS1 checksum digit.

Example

let code = "0360843951968";
gs1_checksum(&code.to_string());

Further Information

GS1 General Specifications Section 7.9.1 - a description can also be found on the GS1 website.