On 10/21/2026 2:52 PM, dxf wrote:
> On 21/10/2026 9:45 pm, marcel hendrix wrote:
>> On 10/21/2026 10:50 AM, Krishna Myneni wrote:
>>> On 10/20/26 8:05 PM, Krishna Myneni wrote:
>> [...]> I post the execution output from dp2_to_dd for the 4 test cases in
>>> ddfsdot-test.4th for anyone who wants to reproduce this output. The hex values of the two double precision numbers input to the program are shown (the second number is, of course, 64-bit 0). Note that the "D" exponent marker must be used to enter a double precision number in Fortran.
>>
>> [...]
>>
>> Strange. I can duplicate 1, 2, and 4 exactly, but not 3: the pair -0.10000000133514320E-09 0.00000000000000000E+00 .
>
> Is your >DD broken that you need to enter literals using another way?
??
> enter 3.0000000000000004440892098500626e-1
> print 3.0000000000000004440892098500625E-1
> 4 5 6 7 8 9 A B C D E F 0 1
> 0193:2DF4 34 33 33 33 33 33 D3 3F 00 00 00 00 00 00
> \ 3F D3 33 33 33 33 33 34 0
>
> enter 9.9999993504564039245746141539976e-39
> print 9.9999993504564039245746141539977E-39
> 4 5 6 7 8 9 A B C D E F 0 1
> 0193:2DF4 00 00 00 80 FB 38 0B 38 00 00 00 00 00 00
> \ 38 0B 38 FB 80 00 00 00 0
>
> enter -1.0000000133514319600180897396057e-10
> print -1.0000000133514319600180897396056E-10
> 4 5 6 7 8 9 A B C D E F 0 1
> 0193:2DF4 00 00 00 E0 DF 7C DB BD 00 00 00 00 00 00
> \ BD DB 7C DF E0 00 00 00 0
>
> enter -9.0071992547409920000000000000000e15
> print -9.0071992547409920000000000000000E15
> 4 5 6 7 8 9 A B C D E F 0 1
> 0193:2DF4 00 00 00 00 00 00 40 C3 00 00 00 00 00 00
> \ C3 40 00 00 00 00 00 00 0
FORTH> s" 3.0000000000000004440892098500626e-1"
2dup >DD cr 10 htab DDFE. >DD pad dd! cr pad 32 dump
3.0000000000000004440892098500626e-1
$013A60D0 34 33 33 33 33 33 D3 3F--00 00 00 00 00 00 00 00--00 00 00 00 00 00 00 00--00 00 00 00 00 00 00 00
FORTH> s" -1.0000000133514319600180897396057e-10"
2dup >DD cr 10 htab DDFE. >DD pad dd! cr pad 32 dump
-1.0000000133514319600180897396057e-10
$013A60D0 00 00 00 E0 DF 7C DB BD--E2 18 37 CE 51 1C 55 37--00 00 00 00 00 00 00 00--00 00 00 00 00 00 00 00
FORTH> s" -9.0071992547409920000000000000000e15"
2dup >DD cr 10 htab DDFE. >DD pad dd! cr pad 32 dump
-9.0071992547409920000000000000000e15
$013A60D0 00 00 00 00 00 00 40 C3--00 00 00 00 00 00 00 00--00 00 00 00 00 00 00 00--00 00 00 00 00 00 00 00
It seems we have the same bitpatterns but slightly different text printouts.
-marcel