(41CX w/Advantage Pac) Feet inches fractions
|
06-22-2022, 09:35 PM
(This post was last modified: 06-28-2022 01:51 AM by DMaier.)
Post: #1
|
|||
|
|||
(41CX w/Advantage Pac) Feet inches fractions
This code takes decimal inches, e.g., 14.25 in X and returns the following in Alpha:
Note: There's an old forum topic HP-41 Advantage Pac AIP function, anyone? that provides alternatives if AIP isn't available. In particular, Namir provides an equivalent to AIP for the CX. The maximum denominator, which should be a power of 2, is assumed to be set in register 0. Note that the code rounds to the nearest fraction. The code modifies flag 2 and registers 2 and 3. Sample output (Reg 1=8, flag 1 clear): Code:
Code:
EDIT: Based on comments from Xorand and Thomas Klemm, below, fixed the description to refer to the correct register and removed a couple of unnecessary bytes. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(41CX w/Advantage Pac) Feet inches fractions - DMaier - 06-22-2022 09:35 PM
RE: (41CX w/Advantage Pac) Feet inches fractions - Xorand - 06-27-2022, 01:25 AM
RE: (41CX w/Advantage Pac) Feet inches fractions - Thomas Klemm - 06-27-2022, 04:53 AM
RE: (41CX w/Advantage Pac) Feet inches fractions - Xorand - 06-27-2022, 04:39 PM
RE: (41CX w/Advantage Pac) Feet inches fractions - Thomas Klemm - 06-27-2022, 06:40 PM
RE: (41CX w/Advantage Pac) Feet inches fractions - Xorand - 06-27-2022, 11:01 PM
|
User(s) browsing this thread: 1 Guest(s)