# 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:** 18\
**Page:** 2

<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 3, 2005, 5:50pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/21 "2005-05-03T17:50:07Z")

</div>

> [@Thudlow Boink](#):
>
> 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.
> 
> 😃

But eventually you reach a point where the ‘half’ is a single pixel on the screen, and I don’t think you can really divide it in half any further. Either you ‘read’ that pixel or ya don’t. 😉

---

<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:54pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/22 "2005-05-03T17:54:09Z")

</div>

> [@ultrafilter](#):
>
> 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.

Which reminds me of a method I read about in one of Martin Gardner’s books of encoding a message of any length with just a single cut of a one-inch-long bar: Convert the message to numbers (using ASCII code; or A = 01, B = 02, etc.; or whatever), write all those numbers run together to the right of a decimal point, and you have a unique real number between 0 and 1. Then cut the bar at the point corresponding to that number. Of course, this only works in the world of theoretical math, not in the real world, because you’d have to be able to cut and measure with infinite precision.

---

<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 3, 2005, 6:34pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/23 "2005-05-03T18:34:07Z")

</div>

> [@Thudlow Boink](#):
>
> Which reminds me of a method I read about in one of Martin Gardner’s books of encoding a message of any length with just a single cut of a one-inch-long bar: Convert the message to numbers (using ASCII code; or A = 01, B = 02, etc.; or whatever), write all those numbers run together to the right of a decimal point, and you have a unique real number between 0 and 1. Then cut the bar at the point corresponding to that number. Of course, this only works in the world of theoretical math, not in the real world, because you’d have to be able to cut and measure with infinite precision.

You’d need to make sure that you have a code that cannot be ambiguous… three-digit ascii numbers for instance… otherwise you might not be sure how to convert a number back into a message.

Reminds me of a scene in an early ‘reboot’ episode where somebody tells a joke in ‘binary’ – not in ASCII code or anything sensible like that, but an encoding of 1 for A, 10 for B, 11 for C, 100 for D, and so on. But with the digits in a mostly unbroken string, you can’t tell if 101 meant to stand for E or BA, or the start of some other letter. 🙂

---

<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, 6:46pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/24 "2005-05-03T18:46:26Z")

</div>

> [@chrisk](#):
>
> You’d need to make sure that you have a code that cannot be ambiguous… three-digit ascii numbers for instance… otherwise you might not be sure how to convert a number back into a message.

Such a code is known as a prefix code. Huffman encoding is the best-known version of this.

---

<div class="post-metadata">

**Author:** ![Omphaloskeptic](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Omphaloskeptic](https://boards.straightdope.com/u/Omphaloskeptic)\
**Post date:** [May 3, 2005, 10:01pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/25 "2005-05-03T22:01:42Z")

</div>

> [@ultrafilter](#):
>
> Such a code is known as a prefix code. Huffman encoding is the best-known version of this.

[pedantic nitpickery]Actually, such a code is called “uniquely decodable.” Not all UD codes are prefix codes, but all prefix codes are UD. Prefix codes (and fixed-length codes, which are a subset of prefix codes) are the easiest UD codes to deal with, though, since they can be efficiently decoded inline.[/pedantic nitpickery]

---

<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 4, 2005, 2:35am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/26 "2005-05-04T02:35:30Z")

</div>

> [@ultrafilter](#):
>
> In either case, there’s a finite aperiodic tail, and then a bunch of repeating digits.

Yes, that’s exactly what I said (trying to be clear, not attacking you **ultrafilter**.

As for .5000… or .4999…, either works. Better yet, let’s get very specific:

Given a sequence a\_i of numbers between 0 and 9, the series

\Sum\_{i=1}^\infty \frac{a\_i}{10^{-n}}

converges. Its limit is the ratio of two natural numbers iff the sequence is eventually periodic.

---

<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 4, 2005, 2:38am UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/27 "2005-05-04T02:38:02Z")

</div>

> [@chrisk](#):
>
> But eventually you reach a point where the ‘half’ is a single pixel on the screen, and I don’t think you can really divide it in half any further. Either you ‘read’ that pixel or ya don’t. 😉

Really, granularity doesn’t enter into the solution to Zeno’s paradox. It’s a little subtler than that and involves showing that the paradox itself is ill-posed.

---

<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 4, 2005, 2:41pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/28 "2005-05-04T14:41:45Z")

</div>

> [@Mathochist](#):
>
> Really, granularity doesn’t enter into the solution to Zeno’s paradox. It’s a little subtler than that and involves showing that the paradox itself is ill-posed.

I guess it depends upon which version you’re addressing, or maybe which paradox. I don’t remember this one being ill-posed.

---

<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 4, 2005, 3:10pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/29 "2005-05-04T15:10:58Z")

</div>

> [@RM Mentock](#):
>
> I guess it depends upon which version you’re addressing, or maybe which paradox. I don’t remember this one being ill-posed.

The classic one about firing an arrow is based on the assumption that an object is stopped or in motion, and further that positional information is everything. When you freeze-frame as Zeno wants you to, you lose momentum information.

If mechanics took place solely in configuration space, there would indeed be a problem, but at each moment the arrow not only is somewhere, but _has an instantaneous velocity_. When Zeno tells you “everything is either moving or it’s not”, it’s false.

---

<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 4, 2005, 3:30pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/30 "2005-05-04T15:30:00Z")

</div>

Hmm… I always thought that Zeno’s paradox was the thing with Achilles and the tortoise, but evidently there are [several paradoxes](http://mathworld.wolfram.com/ZenosParadoxes.html)

---

<div class="post-metadata">

**Author:** ![Ponder\_Stibbons](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ponder_stibbons/32/343_2.png) [@Ponder\_Stibbons](https://boards.straightdope.com/u/Ponder_Stibbons)\
**Post date:** [May 4, 2005, 3:34pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/31 "2005-05-04T15:34:33Z")

</div>

> [@chrisk](#):
>
> But eventually you reach a point where the ‘half’ is a single pixel on the screen, and I don’t think you can really divide it in half any further. Either you ‘read’ that pixel or ya don’t. 😉

Well, the problem with that is that the very act of reading the pixel may or may not kill a cat.

---

<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 4, 2005, 3:41pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/32 "2005-05-04T15:41:22Z")

</div>

> [@Mathochist](#):
>
> The classic one about firing an arrow

The arrow paradox is over at the “Fruit flies like a banana” thread 🙂

---

<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 4, 2005, 4:50pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/33 "2005-05-04T16:50:36Z")

</div>

> [@tim314](#):
>
> Hmm… I always thought that Zeno’s paradox was the thing with Achilles and the tortoise, but evidently there are [several paradoxes](http://mathworld.wolfram.com/ZenosParadoxes.html)

Specifically, those are the paradoxes relating to motion. There are other surviving paradoxes aimed at showing that reality is indivisible, but those are less well-known. IIRC, one of them is a little trickier to resolve than the motion paradoxes.

---

<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 4, 2005, 5:06pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/34 "2005-05-04T17:06:18Z")

</div>

“Tell Zeno I’m Willing to meet him Halfway.”

– **CalMeacham** ’s first sig line.

---

<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 4, 2005, 5:23pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/35 "2005-05-04T17:23:17Z")

</div>

> [@ultrafilter](#):
>
> Specifically, those are the paradoxes relating to motion. There are other surviving paradoxes aimed at showing that reality is indivisible, but those are less well-known. IIRC, one of them is a little trickier to resolve than the motion paradoxes.

For anyone who’s interested, it looks like this site has a more complete listing, although I haven’t had time to read all the way through it myself yet:  
[http://plato.stanford.edu/entries/paradox-zeno/](http://plato.stanford.edu/entries/paradox-zeno/)

---

<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 4, 2005, 5:49pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/36 "2005-05-04T17:49:37Z")

</div>

> [@](#):
>
> but at each moment the arrow not only is somewhere, but has an instantaneous velocity.

Sorry, **Mathochist** , but I can’t resist a straight line like that. At any given moment, the arrow has a distribution of positions and of velocities, such that the width of the position distribution is at least inversely proportional to the width of the position distribution, and vice versa.

Not, of course, that this has anything at all to do with the OP.

---

<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 4, 2005, 6:00pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/37 "2005-05-04T18:00:18Z")

</div>

I think some of you guys should be making it clearer to the non-experts when you are talking about decimal fractions (which are mathematical abstractions with infinite precision), and when you are talking about physical objects, like bars and arrows. Newton apparently thought that those bars and arrows could be measured with indefinite precision, but Heisenberg was certainly uncertain about where arrows are and what they are doing.

---

<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 4, 2005, 8:52pm UTC](https://boards.straightdope.com/t/converting-non-terminating-decimals-into-fractions/302101/38 "2005-05-04T20:52:03Z")

</div>

> [@Giles](#):
>
> I think some of you guys should be making it clearer to the non-experts when you are talking about decimal fractions (which are mathematical abstractions with infinite precision), and when you are talking about physical objects, like bars and arrows. Newton apparently thought that those bars and arrows could be measured with indefinite precision, but Heisenberg was certainly uncertain about where arrows are and what they are doing.

Well, this whole discussion has left the original one about decimals. Infinite divisibility is a tangent, which of course is derived from the first thread. As such I can tell you exactly where we are but I have no idea where it’s going.

😃

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