Verhoeff algorithm: Difference between revisions

m
docs
m (docs)
Line 131:
 
"""
verhoeffchecksum(n::Integer, validate=true, terse=true, verbose=false)
Calculate the Verhoeff checksum over `n`.
 
Terse mode or with single argument: return true if valid (last digit is a correct check digit).
Calculate the Verhoeff checksum over `n`.
If checksum mode, return the expected correct checksum digit.
Terse mode or with Ifsingle validation mode,argument: return true if valid (last digit checksis correctlya correct check digit).
If checksum mode, return the expected correct checksum digit.
If validation mode, return true if last digit checks correctly.
"""
function verhoeffchecksum(n::Integer, validate=true, terse=true, verbose=false)
4,105

edits