checkdigit calculation for HP-17b
|
07-28-2015, 09:51 PM
Post: #20
|
|||
|
|||
RE: checkdigit calculation for HP-17b
(07-28-2015 08:28 PM)Thomas Klemm Wrote: This gives us: Thanks, Thomas! I wonder why they use a somewhat more complicate method here, that is, multiplications of the sums by 10 being required before the final mod 11 operation, not to mention the appending of the first checking digit to the number before computing the second checking digit. I haven't even tried to implement that method on the 17Bii, but it appears to me the resulting equation would be much longer. (07-28-2015 08:28 PM)Thomas Klemm Wrote: But then you will say that v[1] wasn't calculated correctly: Yes, I discovered that by examining a few wrong results (adding 9 to the first sum before mod 11 would always do in those cases). Another version uses the following instead, but that would make for a longer 17Bii equation, I think. Code: if (s Mod 11)=10 then Regards, Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)