# Re: decimal to fraction converter

```However long the decimal is (i.e 2 for .23) , raise 10 to that power to
get the denominator, then if you want to simplifly, you just get the
greatest comomn denominator of the numerator (the 23) and the
denominator (10^2), divide the denominator (10^2), and the new number is
the most simplified denominator for that decimal.

By the way, you need to convert the number to a string, and when you are
getting the numerator, dont forget to multiply the origional decimal by
the power of 10 so that the gcd (greatest comm....) is not .23/100.

Hope this helps

Jody wrote:

> I need an algorithm or a whole program for converting decimal answers
> into fractions. I have an 83 and I know that there is a >Frac button,
> but what I need is the DENOMINATOR of the fraction. I don't think
> there is any way to get at the numerator or denominator when using the
>
> >Frac button (I could be wrong; if I am, please tell me!) I used to
> have an 81
>  and I know that there is program for those older calcs that will do
> it. Anybody
>  have it?
>
> Jody Snider
>
> P.S. This is the first time I've used this lists thing, so if I'm
> doing something wrong, please tell me. Thanks.

--
Tim Brierley
brierley@erols.com

```

References:
• From: