Luhn algorithm: Difference between revisions

Content deleted Content added
Fix order of the digits in the example account number
Fix order of the digits in the example account number
Line 87:
=== Example for validating check digit ===
 
# Drop the check digit (last digit) of the number to validate. (e.g. 7992739871417893729974 -> 79927398711789372997)
# 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>).