On 4/10/07, John Randall <[EMAIL PROTECTED]> wrote:
>> NB. largest less than 1
>> 0j20": value 1 1022,#. 52#1
>> 0.99999999999999988898
>
> I got a different answer
> 0j20":_2{unq]1--:^:a: 1
> 0.99999999999999989000
...
What I am trying to get at is the binary fraction .1111....1111 where
there are 53 1's. Unless I am misunderstanding the IEEE 754 standard,
this is the largest double not greater than 1.
Ah, I think I understand.
Superficially -- looking at the decimal displays of our
"largest number smaller than 1" answers, the trailing
five digits 89000 are larger than 88898. However, it's quite
likely that the displayed difference has to do with some
subtle distinction between 32bit J and 64bit J.
Certainly, I see no "order of magnitude" difference, here,
which is what I would expect for an incorrect answer.
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm