I'm sure you've already looked up dyadic ". following Roger's advice.
Additionally, ". looks like it should be related to ": , and both look
like they should be related to strings. On the slim chance you haven't
investigated the documentation, numbers also works with classical
negative notation.
_999 ". '-22.3E-2 _8.2'
_0.223 _8.2
Date: Sun, 14 Sep 2014 14:01:09 +0100
From: Jon Hough<[email protected]>
To:"[email protected]" <[email protected]>
Subject: [Jprogramming] Literal to Integer / Numeric
Message-ID:<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
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 andhttp://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