In the monad ".y, the contents of the string y must
obey J word formation and parsing rules.  Thus
2.5E_2 and 2.5e_2 are acceptable but 2.5E-2 is
not because - is minus or subtraction.

In the dyad x".y, the normal J rules are relaxed
as described in the ". page.
http://www.jsoftware.com/help/dictionary/d601.htm
If you find the relaxed rules unpalatable then you
should stick with the normal, stricter rules.



----- Original Message -----
From: Anssi Seppälä <[email protected]>
Date: Monday, January 25, 2010 7:37
Subject: Re: [Jchat] the thing I hate most about J is...
To: Chat forum <[email protected]>

> My "hate" today  is:
>     ".'2.5E-2'
> |ill-formed number
> |       ".'2.5E-2'
>     0 ".'2.5E-2'
> 0.025
> 
> Anssi
> 
> At 15:40 25.1.2010, Matthew Brand wrote:
> >   # $ '1'
> >0
> >   # $ '12'
> >1
> >
> >It catches me out every time :-).
> >
> >I always forget to run strings through the filter:
> >x =. ,:^:(0:=#@:$) x
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to