On 10/20/26 12:26 PM, marcel hendrix wrote:
> On 10/20/2026 6:15 PM, Krishna Myneni wrote:
>> On 10/20/26 8:47 AM, Krishna Myneni wrote: >> ...
>>> >>> ... >>> The output shows that (DDFS.) as presently implemented in dd_io.4th fails for one of the test cases (test 2), and probably for many more cases. >>> ...
>> >> Typing the string outputs from (FS.) and (DDFS.) shows that (DDFS.) is not rounding properly.
> Simply setting the low part of a double double to 0 might be a bit too simplistic?
No, it is correct. Remember that the double double precision is considered to be the sum of the two double precision numbers within a wider binary format. The 0.0e is an extension of the same binary pattern of the first double padded with 0 bits, so it does not change the value of the exact decimal representation, when the double is extended in this way to dd.
-- KM