Post Reply 
fraction program hp 28s?
06-21-2024, 10:51 PM (This post was last modified: 06-21-2024 11:08 PM by Gerson W. Barbosa.)
Post: #2
RE: fraction program hp 28s?
(06-21-2024 12:24 PM)Rafa Wrote:  FRAC: << EVAL 'A' STO A ABS
'C' STO 1 'B' STO
FLUP B IP 'B' STO
"'" A B * .5 + FLOOR
->STR + "/" + B ->STR
+ STR-> >>

FLUP: << DO 'B' C STO/ C
INV FP 'C' STO UNTIL
C .0001 <= END >>

No problem here.

2.34 FRAC ->

'117/50'

In order to minimize typing errors try to use the menus. For example, instead of

[SHIFT] [U] [S] [T] [R]

use

[SHIFT] [D] [INS]

to enter ->STR

"'" is a single quote between double quotes

Also, make sure you enter STO/ rather than STO /, with a space in between.

Sorry if some or all suggestions sound obvious to you.

Edited to fix a typo, ironically. ('117/50', not '117.50')
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
fraction program hp 28s? - Rafa - 06-21-2024, 12:24 PM
RE: fraction program hp 28s? - Gerson W. Barbosa - 06-21-2024 10:51 PM
RE: fraction program hp 28s? - C.Ret - 06-22-2024, 08:51 PM
RE: fraction program hp 28s? - Rafa - 06-23-2024, 06:08 PM
RE: fraction program hp 28s? - Peet - 06-22-2024, 10:44 PM
RE: fraction program hp 28s? - Rafa - 06-23-2024, 06:52 PM
RE: fraction program hp 28s? - Rafa - 06-23-2024, 06:43 PM
RE: fraction program hp 28s? - C.Ret - 06-24-2024, 07:39 PM
RE: fraction program hp 28s? - Rafa - 06-25-2024, 01:36 PM
RE: fraction program hp 28s? - C.Ret - 06-25-2024, 05:27 PM
RE: fraction program hp 28s? - Rafa - 06-25-2024, 07:46 PM



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