Luhn algorithm: Difference between revisions

Content deleted Content added
Example for validating check digit: Related to previous changes
Fix order of the digits in the example account number
Line 15:
=== Example for computing check digit ===
 
Assume an example of an account number 79927398711789372997 (just the "payload", check digit not yet included):
 
{| class="wikitable" style="text-align:center;border:none;background:transparent;"4353464434047422| style="width:1.5em" | 4283039836977353| style="width:1.5em" | 9
Line 83:
The check digit is equal to <math>10 - (56\operatorname{mod} 10) = 4</math>.
 
This makes the full account number read 7992739871417893729974.
 
=== Example for validating check digit ===