Post Reply 
Conversion Routine
07-02-2016, 02:45 AM (This post was last modified: 07-02-2016 01:14 PM by SlideRule.)
Post: #1
Conversion Routine
In his three volume publication of Structural Programs for the HP67 programmable calculator, W. L. Ashley (PE) includes a program for FEET-INCHES-SIXTEENTHS arithmetic with a 77 line routine for conversion to (LBL B) and from (LBL A) FEET-DecimalFeet and FEET-INCHES-SixteenthsInches. I developed a similiar but much more compact routine for my Hp calculators when I was employed by an International Bridge Design firm in the early 80's.

The savings in program steps begins with a parallel comparison of the two separate conversion routines, as follows:
[attachment=3706]

which yield a 40 line replacement (if used directly as listed)

BUT

when merged, as follows;
[attachment=3707] error in line 30, see reply #2

yield a 31 line program (less than half the original size).

To use;
Code:

    FIX 4    set display to SEE sixteenths digits

where   FT = Feet
        IN = inches
        in = sixteenths
    with feet left of radix and inches & sixteenths right or radix.

        convert FT.ft to FT.INin  (LBL B)
    1.5208
    GSB B    1.0604    read as 1 foot six and four sixteenths, or one quarter, inches.

        convert FT.INin to FT.ft (LBL A)
    1.0604
    GSB A    1.5208    read as one and five thousand two hundred eight ten-thousanths feet.
The program is of limited utility BUT illustrates one of the many step-saving techniques so important in the early days of handheld programmables. ENJOY!

BEST!
SlideRule

ps: I would include the 77 line program for the Hp67 if the copyright is waived. The algorithm presented is fairly universal among the early RPNs' but has plenty of opportunity for modification / improvement. Press to Test!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Conversion Routine - SlideRule - 07-02-2016 02:45 AM
RE: Conversion Routine - Dieter - 07-02-2016, 06:07 AM
RE: Conversion Routine - SlideRule - 07-02-2016, 12:43 PM
RE: Conversion Routine - Dieter - 07-04-2016, 08:22 PM
RE: Conversion Routine - SlideRule - 07-04-2016, 11:31 PM
RE: Conversion Routine - SlideRule - 07-07-2016, 01:13 AM
RE: Conversion Routine - Dieter - 07-07-2016, 05:20 PM
RE: Conversion Routine - Dieter - 07-07-2016, 06:33 PM
RE: Conversion Routine - SlideRule - 07-08-2016, 12:48 AM
RE: Conversion Routine - SlideRule - 07-08-2016, 01:58 PM
RE: Conversion Routine - Dieter - 07-08-2016, 06:32 PM
RE: Conversion Routine - SlideRule - 07-08-2016, 07:41 PM
RE: Conversion Routine - SlideRule - 07-11-2016, 02:52 PM



User(s) browsing this thread: 1 Guest(s)