The dyad ": formats into a decimal display with an
arbitrary number of digits (well, up to 2*31 or 2*53,
I suppose).  ": is described in
http://www.jsoftware.com/help/dictionary/d602.htm

See also
http://www.jsoftware.com/jwiki/Essays/Extended%20Precision%20Functions



----- Original Message -----
From: David Vaughan <[email protected]>
Date: Tuesday, October 11, 2011 9:00
Subject: Re: [Jprogramming] Questions on precision
To: Programming forum <[email protected]>

> How do these work?
> 
> Is it possible to get arbitrary precision this way?
> 
> On 11 Oct 2011, at 16:52, Roger Hui wrote:
> 
> >   0j60 ": 1r3
> > 0.333333333333333333333333333333333333333333333333333333333333
> > 
> >   0j60 ": (+%)/ 200 $ 1r1
> > 1.618033988749894848204586834365638117720309179805762862135449
> > 
> >   0j60 ": -:@(+ 2&%)^:6 ] 1r1
> > 1.414213562373095048801688724209698078569671875377234001561013
> > 
> > 
> > 
> > ----- Original Message -----
> > From: Raul Miller <[email protected]>
> > Date: Tuesday, October 11, 2011 8:44
> > Subject: Re: [Jprogramming] Questions on precision
> > To: Programming forum <[email protected]>
> > 
> >> On Tue, Oct 11, 2011 at 11:09 AM, David Vaughan
> >> <[email protected]> wrote:
> >>> I know you can get exact precision with x:, but what about 
> >> getting a lot a decimal points?
> >>> e.g.
> >>>   1%3
> >>> 0.333333
> >>> 
> >>> Can this become
> >>> 
> >>> 0.333333333333...?
> >> 
> >> Yes.
> >> 
> >> Edit->Configure...
> >>     Parameters: Print Precision
> >>         12
> >> 
> >> Or, http://www.jsoftware.com/help/dictionary/dx009.htm:
> >>    9!:11]12

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to