Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

mod 10-LUHN-10 Algorithm in pl/sql

apollon27Dec 9 2008 — edited Dec 19 2008
Good evening,


I would like a pl/sql function that returns the check digit (last digit) of a 13-digit number?


Look at http://en.wikipedia.org/wiki/Luhn_algorithm for more details…


For example number 7701000200113 (13 digits) should return 6

if you find it, please inform wiki

it has all the languages, except pl/sql

Note: I don't want validation of check digit, I want to return the check digit.




thank you..............!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


reply @@@@@@@@@@@@@
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 16 2009
Added on Dec 9 2008
5 comments
8,155 views