Think of  ":  and  ".  as a pair:

   $5 3
2
   $":5 3 
3
   +/":5 3
|domain error
|       +/":5 3
   
   $".":5 3
2
   +/".":5 3
8
   
Linda


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jon Hough
Sent: Sunday, September 14, 2014 9:01 AM
To: [email protected]
Subject: [Jprogramming] Literal to Integer / Numeric

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