# TITLE: Repeating Decimal to Fraction Conversion # AUTHOR: Roy F.A. Maclean # This is a shortened version of the program by Ian Klassen at http://www.brianhetrick.com/casio/hidetake/fracik.txt # EMAIL: rfamgm at gmail # WEB: http://www.spiderpixel.co.uk/caspro # DATE: 17Dec1995, 27Oct2006 # MAKE: CASIO # MODEL: Any with a [a/bc] button # SIZE: 27 # # If you want to know the fraction for # 0.123123123123 # then enter 0.123 at the first prompt and # enter 3 at the period prompt. # If you want to know the fraction for # 0.123001230012300 # then do same as above but with period 5. # When program is run and fraction is displayed then # pressing the fraction button will alternate between the # decimal and fractional representation. # % represents the fraction symbol from the [ab/c] button @@ Program "DECON" ?->A:"P"?->P 10^P-1 (Int (A Ans+1))%Ans