https://github.com/vertok/ean_code
checks if ean code is valid
https://github.com/vertok/ean_code
Last synced: 3 months ago
JSON representation
checks if ean code is valid
- Host: GitHub
- URL: https://github.com/vertok/ean_code
- Owner: vertok
- License: mit
- Created: 2024-09-19T11:56:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-19T12:50:48.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T16:02:56.986Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This application allows users to input an EAN-13 number and verify its validity.
The user enters the number in a text field and clicks the “Check EAN-13” button.
The application calculates the checksum using the EAN-13 algorithm and displays whether the number is correct or not.
Formula: The checksum is calculated by summing the digits of the EAN-13 number, with every second digit multiplied by 3. The check digit is the smallest number that, when added to this sum, results in a multiple of 10. The formula is:
Check_Digit = (10 − (Summod10)) mod 10