My favorite "conversion to decimal" is one due to Ewart Shaw: y=: 12 ] phi=: -:1+%:5 1.61803 ] d=: y*<.y*phi^.10 684 (-y) ]\ 2 }. (j. d) ": % (*:->:) 10x^y 000000000000 000000000001 000000000001 000000000002 000000000003 000000000005 000000000008 000000000013 000000000021 000000000034 000000000055 000000000089 000000000144 000000000233 ...
http://www.jsoftware.com/jwiki/Essays/Fibonacci_Sequence#generating_functions --- Original Message ----- From: Joey K Tuttle <[EMAIL PROTECTED]> Date: Wednesday, October 17, 2007 0:05 Subject: Re: [Jprogramming] extended decimals To: Programming forum <[email protected]> > Try - > > 0j66 ": 1r7 > 0.142857142857142857142857142857142857142857142857142857142857142857 > > > > At 12:19 +0530 2007/10/17, adam dunne wrote: > >Is it possible to convert a number like 1r7 into an extended decimal? > >I was thinking of far more than the 17 decimal places allowed by > >format with fit: > >":!.20 %7 > >0.14285714285714285 > > ":!.21 %7 > >|limit error > >| ":!.21%7 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
