Luhn algorithm: Difference between revisions

Content deleted Content added
Example for computing check digit: The odd even rules calculated from the rightmost digit.
Example for validating check digit: Related to previous changes
Line 87:
=== Example for validating check digit ===
 
# Drop the check digit (last digit) of the number to validate. (e.g. 7992739871379927398714 -> 7992739871)
# Calculate the check digit (see above)
# Compare your result with the original check digit. If both numbers match, the result is valid. (e.g.<math>(givenCheckDigit = calculatedCheckDigit) \Leftrightarrow (isValidCheckDigit)</math>).