$ ": 123
3

123 is numeric.  The interpreter picks the precision: integer here.

": converts to displayable form (characters)

$ counts the characters.


    1234567890123456789

1234567890123456789


This still fits in a 64-bit signed integer, so the interpreter picks integer precision

    $ ": 1234567890123456789

19


    12345678901234567890

1.23457e19

Now the interpreter picks floating precision, which displays in scientific notation

    $ ": 12345678901234567890

10


    12345678901234567890x

12345678901234567890

You are specifying extended precision, which displays in full

    $ ": 12345678901234567890x

20

Henry Rich





On 9/23/2015 6:26 PM, robert therriault wrote:
Nice one Phil,

Does this help?

     $":12345678901234567890
10
    ":12345678901234567890
1.23457e19
    ":1234567890123456789
1234567890123456789
    ":12345678901234567890x NB. Extended type
12345678901234567890

There really are no silly questions when you are learning this language. 
Welcome!

Cheers, bob


On Sep 23, 2015, at 3:19 PM, Philip Hunt (USA) <philip.h...@usa.net> wrote:

$":12345678901234567890
----------------------------------------------------------------------
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