GS1 Genel Check Digit
Compute a GS1-style check digit using the weighted mod-10 method for a numeric identifier.
Reports the extension digit and Mod-10 check digit of an 18-digit SSCC.
Reports the extension digit and Mod-10 check digit of an 18-digit SSCC.
Example: 123456789012345678 reports length=18 and extension-digit=1; check-digit-valid is separate.
Non-digits are no longer silently deleted; this is a format/check-digit test, not allocation verification.
Example: 123456789012345678 reports length=18 and extension-digit=1; check-digit-valid is separate.
Non-digits are no longer silently deleted; this is a format/check-digit test, not allocation verification.