HP41 Feet and Inch Program



#2

Who has a good HP41 feet and inch program?


#3

I do. I have to find it first. I have a mountain of programs I'm going to contribute to this website. I just started sorting through them a couple of days ago.It works in feet, inches, and sixteenths, adds, subtracts, multiplys, divides, and works with triangle programs in feet, inches and sixteenths. I will send it to you. I also have this program for hp25, 67, and 41 and 32SII.


#4

Thanks William. I have a program but it does not multiply or divide unless I convert it to decimals.


#5

Ty...

I wrote a program (FEET) at least 15 years ago that sets up a two register RPN stack to handle feet-inch-fraction (f-i-f) calcuations. I have never posted it anywhere, because, well, I'm LAZY. But, e-mail me directly and I will put it together for you. I may even get it in shape to post. Even though I use a 42S day-to-day, I still use my 41CX for the FEET program (there's an error in my 42S version that I STILL haven't had time to track down...I tried to improve it and did something wrong).

The program will handle addition and subtraction of two f-i-f numbers (as long as the subtraction won't result in a negative number), multiplication and division of an f-i-f number by a contstant (e.g. diameter in f-i-f * pi to get circumference in f-i-f), f-i-f to decimal and decimal to f-i-f conversions. The program also provides one storage register.

One interesting feature of the program is that you are not limited to 16ths of an inch, though that is the default. The program can work with ANY fraction you choose...not just the binary ones like 1/2, 1/4, 1/8, etc., but also 1/10, 1/21, 1/123, etc. Also, if you give it a fraction of 0 or 1, you can work in feet and inches and not have to bother with fractions. If you are working in 8ths of an inch and enter a number in 20ths of an inch, the program will round off the "offending" entry to the nearest 8th of an inch. You can also enter 1'15-25/8" and the program will correct your entry to 2'6-1/8".

The program uses the X<>F, XTOA, and REGMOVE commands from the 41-CX, but there are workarounds. The heart of the program, the part that reduces the fractions, is based on the fraction reduction routine in the PPC ROM. You don't need the PPC ROM, however.

BTW, the program takes 438 bytes of program space and requires something like 12 data registers.

Fred


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 2,783 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  [hp41] reading the catalog under program control Wolfgang 3 1,602 02-25-2013, 01:32 PM
Last Post: Dan Grelinger
  HP41 Blank formulars for program documentation? Wolfgang 3 1,551 02-15-2013, 11:08 PM
Last Post: Wolfgang
  15C LE keyboard fixed, plus: about the feet Dale Reed 2 1,224 01-15-2012, 04:24 AM
Last Post: Reth
  Classic Calculator Feet/Latch aj04062 0 765 03-06-2010, 05:57 PM
Last Post: aj04062
  Woodstock feet replacements? Michael Meyer 6 1,816 10-09-2009, 05:15 AM
Last Post: Vieira, Luiz C. (Brazil)
  Removing rubber feet from HP27S Strath Clarke (Sydney, Australia) 4 1,501 02-10-2009, 06:13 AM
Last Post: Strath Clarke (Sydney, Australia)
  Woodstock feet-- any good replacement? Michael Meyer 3 1,288 09-11-2008, 11:49 PM
Last Post: Les Wright
  Upper rubber feet on the HP 35s Ivan Latorre 7 2,146 08-10-2008, 08:56 PM
Last Post: Jeff Kearns
  HP-41 MCODE: Making an MCODE program call another MCODE program Geir Isene 10 2,946 01-13-2008, 05:58 AM
Last Post: Raymond Del Tondo

Forum Jump: