Registry / Library

library · v0.1.1
Ean13 Digit
Derive the EAN-13 check digit from exactly twelve decimal data digits. Invalid input returns minus one.
Use Ean13 Digit
use vendor::ean13_digit::ean13_digit;
Run the example
nest demo ean13_digit@0.1.1
blyxc native-run ean13_digit-demo/main.blyx
Example source and expected output
use vendor::ean13_digit::ean13_digit;
fn main() {
println!(ean13_digit([4,0,0,6,3,8,1,3,3,3,9,3]));
}
Expected output
1
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 3768cd5188 | c323b4ccefb9981e886c753d26e10bd4d0565b32a6391d343d6b7e36455f65b4 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 01a54d9734f65792bb415b16a6dac0cbd6a4c5be14d03d4acd62de47a5c32451 |