If open by itself gives you
   >tstbtxt=: 8!:0 tstb
5
2
3

1
9
4

8
6
7

Then your data are probably literals.
   datatype each tstbtxt
+-------+-------+-------+
|literal|literal|literal|
+-------+-------+-------+
|literal|literal|literal|
+-------+-------+-------+
|literal|literal|literal|
+-------+-------+-------+

In that case you could convert them to numeric first before unboxing.
   > _99". each tstbtxt
5 2 3
1 9 4
8 6 7

---Sherlock, Ric wrote:
>    ]tst=: _3]\5 2 3 1 9 4 8 6 7
> 5 2 3
> 1 9 4
> 8 6 7
>    ]tstb=: <"0 tst
> +-+-+-+
> |5|2|3|
> +-+-+-+
> |1|9|4|
> +-+-+-+
> |8|6|7|
> +-+-+-+
>    >tstb
> 5 2 3
> 1 9 4
> 8 6 7
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of PackRat
> > Sent: Wednesday, 28 May 2008 15:59
> > To: Programming forum
> > Subject: [Jprogramming] BegQ--Array of boxed data --> numeric array
> >
> > This is gotta be simple, but, for the life of me, I can't
> seem to find
> > it in Vocabulary, Primer, Learning J, J for C Programmers, Phrases,
> > Introduction, or Dictionary:
> >
> > How do I unbox (convert) an array of boxed data to a
> standard numeric
> > array?
> >
> > Example:
> >
> > +-+-+-+
> > |5|2|3|       5  2  3
> > +-+-+-+
> > |1|9|4|  -->  1  9  4
> > +-+-+-+
> > |8|6|7|       8  6  7
> > +-+-+-+
> >
> > Thanks in advance!
> >
> > Harvey
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to