Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operation request: Luhn algorithm #963

Closed
shaihu opened this issue Feb 20, 2020 · 4 comments
Closed

Operation request: Luhn algorithm #963

shaihu opened this issue Feb 20, 2020 · 4 comments

Comments

@shaihu
Copy link

shaihu commented Feb 20, 2020

Summary

Calculate a checksum using the Luhn algorithm

Example Input

35245709116975

Example Output

7

Thanks in advance!

@n1073645
Copy link
Contributor

n1073645 commented Feb 25, 2020

Please could you link an example implementation/specification because this online tool https://www.dcode.fr/luhn-algorithm when run on your input does not produce 7.

@shaihu
Copy link
Author

shaihu commented Feb 25, 2020

sorry, missed one digit.
The input should have been 35641709012469

I use https://planetcalc.com/2464/

@n1474335
Copy link
Member

n1474335 commented Mar 5, 2020

Implemented in v9.14.0

@n1474335 n1474335 closed this as completed Mar 5, 2020
@shaihu
Copy link
Author

shaihu commented Mar 5, 2020

Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants