Post Reply 
HP 12C (Metric to Standard Conversion)
08-15-2017, 10:13 AM (This post was last modified: 08-15-2017 10:26 AM by Dieter.)
Post: #2
RE: HP 12C (Metric to Standard Conversion)
(08-15-2017 05:57 AM)Gamo Wrote:  Here is a simple program to convert metric to standard

If your standard has imperial units. ;-)

(08-15-2017 05:57 AM)Gamo Wrote:  Kilometer > Pound
...
F > C

Of course it's kg to lb. And °C to °F.
But in both cases the PDF is correct.

(08-15-2017 05:57 AM)Gamo Wrote:  just start GTO to the one you looking for....

Thank you for your program. I hope you do not mind a few suggestions that may help making it even better.

The kg-lb and l-gal conversions use good approximations with 1 kg ~ 4579/2077 lb resp. 1 l ~ 1179/4463 gal. But then... instead of eight digits and two operations you may just as well take the exact values and divide by 0,45359237 resp. multiply by 3,785411784.

BTW – the WP34s and 31s assume 1 lb = 0,4535924 kg. My 34s manual states even one digit less, i.e. 0,453592. What is the official value? Pauli?

Then, you could start the program with four GTOs to the respective routines. This way the user does not have to memorize the numbers 00, 08, 22 and 36 but simply 01, 02, 03 and 04. Also the initial ENTERs in the four routines may be removed then.

One could even code a deluxe version that takes a code 1, 2, 3 or 4 from x and jumps to the respective routine from there:
28 ENTER 1 R/S => 11,02 in
15 ENTER 2 R/S => 33,07 lb
etc.

And a final hint: in any case, i.e. also with your original program, the inverse conversion can be done by pressing 1/x before and after the R/S:

Example: 15 inches to centimeters
[GTO] 00   15 [1/x] [R/S] [1/x] => 38,1 cm

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 12C (Metric to Standard Conversion) - Dieter - 08-15-2017 10:13 AM



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