Luhn algorithm: Difference between revisions

Content deleted Content added
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. 17893729974 ->→ 1789372997)
# Calculate the check digit (see above)
# Compare your result with the original check digit. If both numbers match, the result is valid. {{nowrap|1=(e.g.<math> (givenCheckDigit = calculatedCheckDigit) \Leftrightarrow&hArr; (isValidCheckDigit)</math>).}}
 
==Strengths and weaknesses==