On Fri, Mar 30, 2012 at 07:03, Brandon T <[email protected]> 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. > >>1/998 > 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) 0.5(0) > (write-expansion 1/3) 0.(3) > (write-expansion 1/998) 0.0(010020040080160320641282565130260521042084168336673346693386773547094188376753507014028056112224448897795591182364729458917835671342685370741482965931863727454909819639278557114228456913827655310621242484969939879759519038076152304609218436873747494989979959919839679358717434869739478957915831663326653306613226452905811623246492985971943887775551102204408817635270541082164328657314629258517034068136272545090180360721442885771543086172344689378757515030060120240480961923847695390781563126252505) > ____________________ Racket Users list: http://lists.racket-lang.org/users

