Function fiveDigitPriceWeightCheckDigit

  • Calculate the price/weight check digit for a five-digit numeric string as per section 7.9.3 of the GS1 General Specifications.

    Parameters

    • s: string

      Numeric string exactly five characters long.

    Returns string

    Check digit 0-9 as a string.