Oops, thanks for the hint.

Rudi


Am 18.05.2011 um 15:25 schrieb Dan Bron:

> You're using the monad ". , Do, which executes valid J sentences  
> (i.e. just
> like the things you can type into the IJX window).  1e+2 is not a  
> valid J
> sentence.
>
> What you want is the dyad ". , Numbers, which provides the leeway you
> quoted:
>
>          _ ". '1e+2'
>       100     
>
> -Dan
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Rudi Mann
> Sent: Wednesday, May 18, 2011 9:20 AM
> To: Programming forum
> Subject: [Jprogramming] String to number conversion
>
> Hi,
>
> Just encountered the following situation:
>
>    ".'1e2'
> 100
>    ".'1e+2'
> |ill-formed number
> |       ".'1e+2'
>
> Now let's look into the documentation
> (http://www.jsoftware.com/docs/help701/dictionary/d601.htm
> ):
>
> "... the exponent of a number in exponential format may be preceded by
> a + sign"
>
> I think either the interpreter or the documentation needs an update.
>
> Rudi
> (J7.01 on a Mac)
>
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

Rudolf Mann

Happy Plating GmbH
Aumühlweg 17-19 Halle F4
A-2544 Leobersdorf
Austria

Tel. +43 (0) 2566 62120-14
Fax +43 (0) 2566 62120-40
www.happyplating.at




----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to