thanks Devon, Henry and Rich

I guess I should have discovered that myself (float representation etc.) especially as synchronicity would have it, I was just working on compressing 32bit floats in our product here at work (for a logging values over 10 years of data collection)

Makes good sense now thank you guys!



On 23.09.2015 7:26 PM, Henry Rich wrote:
   $ ": 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

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

Reply via email to