<br><br>On Friday, March 30, 2012, Brandon T wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
Hi i have a question that i could not find an answer to on your site, not could i find an answer on stack overload. By default, racket prints the first 25 digits of a irrational fraction. i.e.<div><br></div><div>>1/998</div>
<div>0.0010020040080160320641282...</div><div><br></div></div></div></blockquote><div><br></div><div>Just to point out that 1/998 is not irrational. It has a finite decimal representation. See:<span></span></div><div><br>
</div> <a href="http://en.wikipedia.org/wiki/Repeating_decimal">http://en.wikipedia.org/wiki/Repeating_decimal</a><div><br>
</div>We can can compute the repeating decimal representation of a fraction by repeated division on the remainders, and since there are only a finite number of distinct remainders of 998, we're guaranteed to terminate at some point, or find a loop.<div>
<br></div><span></span><div></div>