". '5.32'
5.32
   12 + ". '5.32'
17.32

The dyad ". is specifically for numeric conversion and is more efficient
and handier:

   _999 ". '5.32'
5.32
   _999 ". '34skidoo'
_999




On Sun, Sep 14, 2014 at 6:01 AM, Jon Hough <[email protected]> wrote:

> This is possibly a very simple question with a very simple answer, but I
> cannot find it.
> To convert an integer to a literal I can use ":
> e.g. ": 5
> returns '5', as a string literal.
> But I am not sure how to do the reverse.
> How can I read '5.32' as a float or '4' as an integer?I looked in Nuvoc
> and http://www.jsoftware.com/help/dictionary/dx003.htm
> and couldn't find the answer.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to