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.
Program Listing
The listing of program 2FRAC is given below:
Downloads
PDF format of program 2FRAC.
RAW/TXT format of program 2FRAC (in zip file).
© 1999-2020 by Auke Hoekstra