[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comments on GNU APL

From: Kacper Gutowski
Subject: Re: Comments on GNU APL
Date: Thu, 9 Jan 2020 22:03:28 +0100

On Thu, Jan 09, 2020 at 07:53:17PM +0000, Mr. Brian B. McGuinness wrote:
>    For example, if I do
>          )wsid test
>          sec2rad ← 4.8481368110953599359e¯6
>          )dump
>    and then I look at the test.apl file, I see
>    sec2rad←0.00000484813681109536
>    so I have lost five digits.

No, you have lost only 3 when converting the number you initially entered
to double precision floating point representation, long before dumping.
The dumped value has enough digits to recover it *exactly*:

      0.00000484813681109536 = 4.8481368110953599359e¯6
      25⍕⍪ 0.00000484813681109536 4.8481368110953599359e¯6

(But otherwise I'm indifferent to the proposal of changing )DUMP format.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]