checkStandardUPCEANChecksum

Computes the UPC/EAN checksum on a string of digits, and reports whether the checksum is correct or not.

Return

true iff string of digits passes the UPC/EAN checksum algorithm

Parameters

s

string of digits to check

Throws

if the string does not contain only digits