Talk:Luhn algorithm: Difference between revisions

Content deleted Content added
SineBot (talk | contribs)
m Signing comment by 64.193.143.107 - "description incorrect 4/17/2013: new section"
Line 204:
I believe the Python implementation is incorrect. First, it does not work with zero padding. The leading zero/s will cause the str function to treat the number as an octal number which is not what you want.
Secondly, calculate_luhn returns (10 - something_mod_10). Hence, the results will be between 1 and 10, which is not what we want for a single checksum digit. [[Special:Contributions/216.165.126.85|216.165.126.85]] ([[User talk:216.165.126.85|talk]]) 01:05, 17 March 2012 (UTC)
 
::: The Python example doesn't clarify anything. I have done minor programming with BuildBot; which I believe uses Python. I have used Perl, lisp, Basic, C, Java, C++, 8 different assembler languages, JavaScript, Pascal and Fortran. Any programmer how can not look at the table at the start and not translate it to the language they are using should not be programming. This is not a statement against Phyton. It is for the title of this section; remove all programming languages. I agree with this. [[Special:Contributions/71.19.161.130|71.19.161.130]] ([[User talk:71.19.161.130|talk]]) 20:51, 5 November 2014 (UTC)
 
== Ruby Solution ==