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 .
Also:
FORTH> s" -1.0000000133514319600180897396057e-10" >dd cr fswap +e. +e.
-1.0000000133514319362e-0010 3.7865323450608573444e-0042 ok
Or, trying to compensate for the FPU 80-bit stack:
FORTH> 0e dfvalue aa ok
FORTH> 53-bits! s" -1.0000000133514319600180897396057e-10" >dd cr fswap TO aa aa +e. space TO aa aa +e.
-1.0000000133514319362e-0010 3.7865323450608573444e-0042 ok
However, note that the float from >DD is -1.0000000133514319362e-0010. , not -0.10000000133514320E-09 as in your case.
-marcel
FORTH> 53-bits! 0.30000000000000004E+00 0.00000000000000000E+00 cr fover +e. space fdup +e. cr ddfe. cr .(
3.0000000000000004440892098500626e-1 )
3.0000000000000005126e-0001 0.0000000000000000000e+0000
3.0000000000000004440892098500626e-1
3.0000000000000004440892098500626e-1 ok
FORTH> 53-bits! 0.99999993504564039E-38 0.00000000000000000E+00 cr fover +e. space fdup +e. cr ddfe. cr .(
9.9999993504564039245746141539976e-39 )
9.9999993504564044884e-0039 0.0000000000000000000e+0000
9.9999993504564039245746141539976e-39
9.9999993504564039245746141539976e-39 ok
FORTH> 53-bits! -0.10000000133514320E-09 0.00000000000000000E+00 cr fover +e. space fdup +e. cr ddfe. cr .( -1.0000000133514319600180897396057e-10 )
-1.0000000133514321920e-0010 0.0000000000000000000e+0000
-1.0000000133514322185120311624269e-10
-1.0000000133514319600180897396057e-10 ok
FORTH> 53-bits! -0.90071992547409920E+16 0.00000000000000000E+00 cr fover +e. space fdup +e. cr ddfe. cr .( -9.0071992547409920000000000000000e15 )
-9.0071992547409920000e+0015 0.0000000000000000000e+0000
-9.0071992547409920000000000000000e15
-9.0071992547409920000000000000000e15 ok