Owing to the recent discussion in other threads about conversion words
in Forth from
1. decimal string to a double double precision floating point number,
2. double double fp number to an output string,
it is helpful to have some reference tools to check against, for both
cases.
I have written two short Fortran 90 programs to provide reference outputs:
dp2_to_ddr.f90 -- read two dp numbers and output the double double ddr_to_dp2.f90 -- read double double input and output the two dp numbers
The programs are used with David Bailey's Fortran package
ddfun-04.tar.gz, which may be found at his home page:
https://www.davidhbailey.com/dhbsoftware/
The package contents have also been placed at the following link:
https://ccreweb.org/software/ddfun/
On 9/16/26 6:24 AM, Krishna Myneni wrote:
Owing to the recent discussion in other threads about conversion words
in Forth from
1. decimal string to a double double precision floating point number,
2. double double fp number to an output string,
it is helpful to have some reference tools to check against, for both
cases.
I have written two short Fortran 90 programs to provide reference
outputs:
dp2_to_ddr.f90 -- read two dp numbers and output the double double
ddr_to_dp2.f90 -- read double double input and output the two dp numbers
The programs are used with David Bailey's Fortran package
ddfun-04.tar.gz, which may be found at his home page:
https://www.davidhbailey.com/dhbsoftware/
The package contents have also been placed at the following link:
https://ccreweb.org/software/ddfun/
I've revised and renamed the two programs:
dp2_to_ddr.f90 --> dp2_to_dd.f90
ddr_to_dp2.f90 --> dd_to_dp2.f90
The renaming change better aligns with the terminology used in the ddfun package.
The revisions use direct access to the two double precision values of a double double variable, instead of computing them. There's no change in behavior (as far as I can tell) for the two programs.
The link for the two revised programs is
https://ccreweb.org/software/ddfun/dd_to_dp2/
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 54:45:27 |
| Calls: | 1,265 |
| Calls today: | 1 |
| Files: | 1,362 |
| D/L today: |
3 files (2,684K bytes) |
| Messages: | 285,582 |