50G fraction question Q-> function max denominator
|
10-25-2019, 11:42 PM
(This post was last modified: 10-25-2019 11:45 PM by Joe Horn.)
Post: #10
|
|||
|
|||
RE: 50G fraction question Q-> function max denominator
(10-25-2019 09:42 PM)100LL Wrote: Is the port to the 49G+/50G really that simple by the way? Yes, although now that I think about it, I'd suggest replacing this: # 5603Eh SYSEVAL with this instead: R\->I SWAP R\->I SWAP / This eliminates all reliance on SYSEVAL or FLASHEVAL or any dangerous junk like that. When that replacement is made in the HP 50g, the BYTES command (on the program by itself on the stack, not its name) returns 298.5, #ED4h. That's assuming that it was keyed in while the 50g was in exact mode, so the literal numbers in the program have no decimal points. If entered in approximate mode, BYTES returns 298.5, #8B6Bh. I just tested it and it works on the 50g. Inputs: pi, 100. Output: 311/99. <0|ΙΈ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)