2FRAC

Display

(HP-41CX, Hewlett Packard 1983 and DM41X, SwissMicros 2020)
 

Overview
Program 2FRAC determines the fractions of a given decimal number. The numerator and denominator are calculated on basis of finding the Greatest Common Factor (GCF), equivalent to the Greatest Common Divider (GCD). If it exists, it will be reduced by dividing both the numerator and denominator by the GCF. Here is an example for 0,375:

in which the GCF is 125. Finding 125 is found by iterative division.
 

Examples

 

Program Listing
The listing of program 2FRAC is given below:

 

Registers, Labels and Flags

 

Downloads
PDF format of program 2FRAC.
RAW/TXT format of program 2FRAC (in zip file).
 

This program is copyright and is supplied without representation or warranty of any kind. The author assumes no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof

© 1999-2020 by Auke Hoekstra

 
Don`t copy text!