checkdigit calculation for HP-17b
|
07-28-2015, 02:54 PM
Post: #14
|
|||
|
|||
RE: checkdigit calculation for HP-17b
(07-26-2015 07:47 AM)Thomas Klemm Wrote:(07-26-2015 12:08 AM)Don Shepherd Wrote: This reduced the size of the equation from 164 characters to 92 characters, a 44% reduction in size, and I achieved all of my goals. Thomas, it has taken me a couple of days but I finally figured out exactly how your method works. I had to draw a table taking things one step at a time, for each digit of the input number. What I couldn't figure out was the behavior of the MOD function with negative numbers; I've always stayed away from negative numbers before, but I now understand how MOD and INT work differently with negative numbers as opposed to positive numbers. I didn't realize that before, and I thank you for giving me this opportunity to understand that behavior. Your method is a work of art. You are a "steely-eyed missleman", as NASA would say. Don |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)