Can I trust wikipedia code examples ? From today I don't. The famous Luhn formula to check credit card number has different implementations, listed at the end of the article. One small problem, though: C# implementation always returns false, Java implementation always returns true. C# code looks accurate, but I think they should do some test work before publishing.
Thursday, October 28, 2004 10:22 AM