Also notice that monadic and dyad ". has different semantics, eg, compare results of ". '-3 4' and _ ". '-3 4' ". '3,4' and _ ". '3,4'
so it depends on how the string are intended to convert. Птн, 30 Дек 2011, Joey K Tuttle писал(а): > The dyadic form of ". has some additional advantages. It is considerably > faster than (monadic) ". and it is lenient with signs from other > environments, e.g. > > _ ". '1 2 3j4 -6 +7 _8 -3p-2 not-a-number 16b1f ' > 1 2 3j4 _6 7 _8 _0.303964 _ 31 > > > On 2011/12/30 16:51 , Blake McBride wrote: > > Greetings, > > > > In APL I used to use the execute function to convert a string (like > > '123.45') into a number 123.45 (after I verified that it was a valid > > number). How can I do this in J? > > > > Thanks. > > > > Blake McBride > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm