checkdigit calculation for HP-17b
|
07-29-2015, 02:20 AM
Post: #23
|
|||
|
|||
RE: checkdigit calculation for HP-17b
(07-28-2015 10:11 PM)Don Shepherd Wrote: What you did would have never occurred to me because I would have wanted to avoid negative numbers And that's why you used -9 in your formula? Nah, just kidding. Of course I understand what you mean. Once you're familiar with the rules of modular arithmetic, you can juggle with the expressions in new ways. Examples modulo 11: (stolen from my previous answer to Gerson's question) Code: 10 * (11 - i) Code: 10 * (12 - i) Kind regards Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)