# Converting non terminating decimals into fractions

**URL:** <https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101>\
**Category:** Factual Questions\
**Created:** [May 2, 2005, 6:55pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101 "2005-05-02T18:55:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nobody](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@Nobody](https://boards.straightdope.com/u/Nobody)\
**Post date:** [May 2, 2005, 6:55pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/1 "2005-05-02T18:55:53Z")

</div>

At work, to help cure my boredom, I play around with different number. Figuring out what I make on a per minute basis, and other useless stupid stuff like that. Now sometimes, to make my calculations easier, I convert decimals into fractions. But I haven’t figure out, if it’s possible, how to convert repeating decimals into fractions. For example, .6 is 6/10 which recuses to 3/5. OK, easy enough.  
But how do you change .666666… into 2/3. Or .11111… to 1/9? Is there a way to do it? Thanks.

---

<div class="post-metadata">

**Author:** ![chrisk](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@chrisk](https://boards.straightdope.com/u/chrisk)\
**Post date:** [May 2, 2005, 7:04pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/2 "2005-05-02T19:04:35Z")

</div>

An easy rule of thumb if the decimal repeats itself entirely is to take the repeating part as the numerator and put it ‘over’ as many 9’s as decimal places as it’s repeating. For instance…

.2727272727…

27/99 which reduces to…  
9/33 and…  
3/11

Hope that helps!!

---

<div class="post-metadata">

**Author:** ![CalMeacham](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/calmeacham/32/35_2.png) [@CalMeacham](https://boards.straightdope.com/u/CalMeacham)\
**Post date:** [May 2, 2005, 7:18pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/3 "2005-05-02T19:18:10Z")

</div>

The Reason This Works:  
If your number is, say 0.27272727…, then call that x

**x = 0.2727272727…**

\*\*100x = 27.27272727…

100x - x = 27\*\* (gets rid of that nasty, repeating part)  
\*\*99 x = 27

x = 27/99

x = 3/11\*\*

---

<div class="post-metadata">

**Author:** ![Giles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/giles/32/60_2.png) [@Giles](https://boards.straightdope.com/u/Giles)\
**Post date:** [May 2, 2005, 7:23pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/4 "2005-05-02T19:23:42Z")

</div>

It’s fairly easy to prove that:

0.11111… = 1/9  
0.010101… = 1/99  
0.001001001… = 1/999  
0.000100010001… = 1/9999

(Hints for a proof: these are decimal fractions, so the associated series converge in a very well-behaved way, and 0.999999… converges to (i.e., is equal to) 1.)

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [May 3, 2005, 12:10am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/5 "2005-05-03T00:10:24Z")

</div>

> [@Giles](#):
>
> It’s fairly easy to prove that:
> 
> 0.11111… = 1/9  
> 0.010101… = 1/99  
> 0.001001001… = 1/999  
> 0.000100010001… = 1/9999
> 
> (Hints for a proof: these are decimal fractions, so the associated series converge in a very well-behaved way, and 0.999999… converges to (i.e., is equal to) 1.)

More advanced exercise: prove that any decimal number expressible as the ratio of two natural numbers is eventually periodic – its decimal expansion consists of a number of digits, followed by another sequence of digits which repeats itself from then on.

---

<div class="post-metadata">

**Author:** ![Bryan\_Ekers](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bryan_ekers/32/183_2.png) [@Bryan\_Ekers](https://boards.straightdope.com/u/Bryan_Ekers)\
**Post date:** [May 3, 2005, 12:17am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/6 "2005-05-03T00:17:05Z")

</div>

> [@Mathochist](#):
>
> More advanced exercise: prove that any decimal number expressible as the ratio of two natural numbers is eventually periodic – its decimal expansion consists of a number of digits, followed by another sequence of digits which repeats itself from then on.

Trivial clarification, which I hesitate to make out of simple politeness but feel compelled to out of simple anal-retentiveness : any _non-terminating_ decimal expressible as a ratio is evenutally periodic. One-seventh (0.142857142857…) is non-terminating and repeats, but one-half (0.5) is terminating and doesn’t.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [May 3, 2005, 12:18am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/7 "2005-05-03T00:18:12Z")

</div>

Strictly speaking, .5 should be written as .50000…

---

<div class="post-metadata">

**Author:** ![Nobody](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@Nobody](https://boards.straightdope.com/u/Nobody)\
**Post date:** [May 3, 2005, 1:51am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/8 "2005-05-03T01:51:10Z")

</div>

Wow, an easy and simple solution. Thank you all.

---

<div class="post-metadata">

**Author:** ![John\_Kentzel-Griffin](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@John\_Kentzel-Griffin](https://boards.straightdope.com/u/John_Kentzel-Griffin)\
**Post date:** [May 3, 2005, 4:31am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/9 "2005-05-03T04:31:51Z")

</div>

> [@ultrafilter](#):
>
> Strictly speaking, .5 should be written as .50000…

In other words, in the decimal .5, nothing is repeating.

---

<div class="post-metadata">

**Author:** ![KarlGauss](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/karlgauss/32/3713_2.png) [@KarlGauss](https://boards.straightdope.com/u/KarlGauss)\
**Post date:** [May 3, 2005, 4:44am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/10 "2005-05-03T04:44:43Z")

</div>

> [@Giles](#):
>
> It’s fairly easy to prove that:
> 
> 0.11111… = 1/9

Indeed. It’s just not too easy to prove to those who cannot, or will not, abandon their preconceived notions about limits (“_but it never quite gets there …_”). I mention this because of:

[this](http://boards.straightdope.com/sdmb/showthread.php?t=242396)

and

[this](http://boards.straightdope.com/sdmb/showthread.php?t=187902&highlight=0.999)

and

[this](http://boards.straightdope.com/sdmb/showthread.php?t=15863&highlight=0.999)

and even

[this](http://boards.straightdope.com/sdmb/showthread.php?t=179452&highlight=0.999)

and, of course,

[this](http://boards.straightdope.com/sdmb/showthread.php?t=15832&highlight=0.999)

and

[this](http://boards.straightdope.com/sdmb/showthread.php?t=32760&highlight=0.999).

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [May 3, 2005, 7:17am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/11 "2005-05-03T07:17:39Z")

</div>

Oh, no… Now somebody’s going to bump one of those, and we’ll have to go through all that again…

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [May 3, 2005, 8:57am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/12 "2005-05-03T08:57:26Z")

</div>

> [@ultrafilter](#):
>
> Strictly speaking, .5 should be written as .50000…

**Mathochist** may have been thinking of .5 = .4999… (not that there’s anything wrong with that)

---

<div class="post-metadata">

**Author:** ![Capt.Ridley\_s\_Shooting\_Party](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Capt.Ridley\_s\_Shooting\_Party](https://boards.straightdope.com/u/Capt.Ridley_s_Shooting_Party)\
**Post date:** [May 3, 2005, 9:11am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/13 "2005-05-03T09:11:55Z")

</div>

Even .499… isn’t periodic, surely?

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [May 3, 2005, 10:21am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/14 "2005-05-03T10:21:10Z")

</div>

Why not? A bunch of nines repeating with a period of one?

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [May 3, 2005, 3:04pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/15 "2005-05-03T15:04:13Z")

</div>

> [@RM Mentock](#):
>
> **Mathochist** may have been thinking of .5 = .4999… (not that there’s anything wrong with that)

In either case, there’s a finite aperiodic tail, and then a bunch of repeating digits.

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [May 3, 2005, 3:16pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/16 "2005-05-03T15:16:54Z")

</div>

In “.5”?

---

<div class="post-metadata">

**Author:** ![tim314](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tim314/32/3468_2.png) [@tim314](https://boards.straightdope.com/u/tim314)\
**Post date:** [May 3, 2005, 4:17pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/17 "2005-05-03T16:17:44Z")

</div>

In .500000000…

---

<div class="post-metadata">

**Author:** ![Captain\_Amazing](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@Captain\_Amazing](https://boards.straightdope.com/u/Captain_Amazing)\
**Post date:** [May 3, 2005, 4:45pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/18 "2005-05-03T16:45:20Z")

</div>

> [@KarlGauss](#):
>
> Indeed. It’s just not too easy to prove to those who cannot, or will not, abandon their preconceived notions about limits (“_but it never quite gets there …_”).

I accept your proof is true. I just don’t believe it. 🙂

Maybe my problem is with infinity itself. I mean, I understand taking, say, an inch long bar, and cutting it in half, and then you can take that half inch and cut it in half again, and so on. But don’t you eventually just run into a point where you can’t cut it in half anymore? I know this is a stupid question, but I really don’t understand it.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [May 3, 2005, 5:18pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/19 "2005-05-03T17:18:59Z")

</div>

> [@Captain Amazing](#):
>
> But don’t you eventually just run into a point where you can’t cut it in half anymore?

Yes, but only if you’re dealing with an actual bar.

Analogies with physical processes in mathematics are a double-edged sword because they introduce real-world limitations. For a theory that exists to model the real world, that’s a good thing, but for an abstract, idealized theory (such as decimal representations), that’s a very bad thing.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [May 3, 2005, 5:44pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/20 "2005-05-03T17:44:21Z")

</div>

> [@Captain Amazing](#):
>
> I accept your proof is true. I just don’t believe it. 🙂
> 
> Maybe my problem is with infinity itself. I mean, I understand taking, say, an inch long bar, and cutting it in half, and then you can take that half inch and cut it in half again, and so on. But don’t you eventually just run into a point where you can’t cut it in half anymore? I know this is a stupid question, but I really don’t understand it.

I could not even read your question, because, before reading all of it, I would have to read the first half of it. And before I could do that, I would have to read the first half of that half. But first I would have to read the first half of **that**. And so on.

😃

[Next page](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101.md?page=2)
