[racket] Racket Question

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Fri Mar 30 08:59:16 EDT 2012

On Fri, Mar 30, 2012 at 07:03, Brandon T <btippings at hotmail.com> wrote:
> 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.
> 0.0010020040080160320641282...
> where ones that have more than 25 recurring digits have the ellipses
> following the number.
> My question is: is there any way to print more digits by default instead of
> 25? I am scanning through a list of 1000 numbers and really do not want to
> click on every number individually to continue expanding it.

Can you explain what you need this for?

Would a function like this one serve your purpose?

> (write-expansion 1/2)
> (write-expansion 1/3)
> (write-expansion 1/998)

Posted on the users mailing list.