_1234 ". '3,141,592' 3141592 Commas WITHIN numbers are ignored.
----- Original Message ----- From: Björn Helgason <[EMAIL PROTECTED]> Date: Monday, November 6, 2006 7:05 am Subject: Re: [Jprogramming] Converting numeric data into J nouns > t1=: 0 : 0 > 123,-24,45,-90 > 2,-999,1,2 > ) > > _12345 ". ];._2 t1 rplc ', ' > > The help has > "commas within numbers are ignored" > > That is not really accurate is it? > > 2006/11/6, Roger Hui <[EMAIL PROTECTED]>: > > > > t=: 0 : 0 > > 123, -24, 45, -90 > > 2, -999, 1, 2 > > ) > > > > t1=: 0 : 0 > > 123 -24 45 -90 > > 2 -999 1 2 > > ) > > > > _12345 ". ];._2 t-.',' > > 123 _24 45 _90 > > 2 _999 1 2 > > > > _12345 ". ];._2 t1 > > 123 _24 45 _90 > > 2 _999 1 2 > > > > > > > > ----- Original Message ----- > > From: June Kim <[EMAIL PROTECTED]> > > Date: Monday, November 6, 2006 6:21 am > > Subject: [Jprogramming] Converting numeric data into J nouns > > > > > I often have to change one form of numeric data into J nouns. > Suppose> > > > > t=: 0 : 0 > > > 123, -24, 45, -90 > > > 2, -999, 1, 2 > > > ) > > > > > > or > > > > > > t=: 0 : 0 > > > 123 -24 45 -90 > > > 2 -999 1 2 > > > ) > > > > > > How would you get the 2-d numeric array for t? (is there an > idiom or > > > script for that already?) > > > > > > I can do the transformation but I am very interested to know > others',> > probably more elegant, approaches. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
