On Sun, Mar 25, 2012 at 6:19 AM, m l <[email protected]> wrote: > > The verb <[email protected]^n generates the n digits of Pi. > > Now, asign this to a variable, for example, a=.<[email protected]^200 (n=200 in this > case) > > How to extract the n/2 first digts and asign to another variable ?
One issue here is that you generated 201 digits. But let's say we round up for the first half: b =: <. a % 10x^100 > How to extract the n/2 last digits and asign to a variable ? c=: (10x^100) | a Is this what you wanted, or did you want something different? -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
