Post Reply 
fraction program hp 28s?
06-22-2024, 10:44 PM (This post was last modified: 06-22-2024 10:59 PM by Peet.)
Post: #4
RE: fraction program hp 28s?
It seems fractures were a thing on the 28s back then, I found this in my old notes from the late 1980's:

Bruchrechnen:

GGT (größter gemeinsamer Teiler)
<< DO DUP 3 ROLLD MOD DUP UNTIL 0 == END DROP >>

KGV (kleinstes gemeinsames Vielfaches)
<< DUP2 * ROT ROT GGT / >>

STATUS (setzt Standartflageinstellung, 4 FIX usw.) e.g. Flags {31,35-42,48,49,52,55,59,63}
<< #4920609187307716608d STOF >>

D->BR (Dezimalzahl als Bruch anzeigen)
<< STD DUP DUP IP ->STR " " + SWAP FP 1 DUP2
DO DUP 3 ROLLD MOD
UNTIL DUP ,00001 < END
DROP 0 FIX DUP 3 ROLLD / RND 3 ROLLD / RND
STD ->STR "/" + SWAP ->STR + + CLLCD 2 DISP STATUS
>>


Note: it was important to use the correct decimal separator (./,) according to flag 48 settings.

My calculators - former: CBM PR100, HP41CV, HP11C, HP28S - current: HP48G, HP35S, Prime, DM41X, DM42, HP12C
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? - 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: 1 Guest(s)