monad and dyad can also give different results unrelated to default values. compare ". '12,345' 0".'12,345'
which is more correct depends on situations. Срд, 18 Май 2011, David Ward Lambert писал(а): > String to number---Numbers---is a dyadic function. You've exemplified > the monad, Do . The left hand column of the dictionary definitions > applies to the monadic form, and the right hand side to dyads. > > 666 ". '1e+2' > 100 > > > > On Wed, 2011-05-18 at 21:20 +0800, [email protected] > wrote: > > Date: Wed, 18 May 2011 15:20:14 +0200 > > From: Rudi Mann <[email protected]> > > Subject: [Jprogramming] String to number conversion > > To: Programming forum <[email protected]> > > Message-ID: <[email protected]> > > Content-Type: > > text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > > Hi, > > > > Just encountered the following situation: > > > > ".'1e2' > > 100 > > ".'1e+2' > > |ill-formed number > > | ".'1e+2' > > ---------------------------------------------------------------------- > 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
