Article View: comp.lang.forth
Article #166Re: Tests for (DDFS.)
From: dxf
Date: Thu, 22 Oct 2026 00:26
Date: Thu, 22 Oct 2026 00:26
66 lines
4460 bytes
4460 bytes
On 22/10/2026 4:05 am, marcel hendrix wrote: > 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? > > ?? It's not a valid question? Who enters literals in parts??? What was the necessity? What was the rationale? If testing 'ddfsdot' was actually the goal then the method of data entry is flawed as it introduced a dependency on the host being IEEE compliant. It's the latter that failed you - not your 'ddfsdot'. All the user needed were the hex values and the DD literal they represented as references. >> 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
Technical Details
Message-ID:
<6ad9584f$1@news.ausics.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.ausics.net!not-for-mailReferences:
<11b7rcu$31u3u$1@dont-email.me> <11b8427$35l54$1@dont-email.me> <11b887g$p2rm$1@dont-email.me> <6ad8043a$1@news.ausics.net> <11b935k$3gr0s$1@dont-email.me> <11b9ud7$3oofr$1@dont-email.me> <11ba545$294uk$1@dont-email.me> <6ad8b59e$1@news.ausics.net> <11barcm$29rup$1@dont-email.me>Show Full Headers
Complete Article Headers
Date: Thu, 22 Oct 2026 11:26:56 +1100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Tests for (DDFS.) Newsgroups: comp.lang.forth References: <11b7rcu$31u3u$1@dont-email.me> <11b8427$35l54$1@dont-email.me> <11b887g$p2rm$1@dont-email.me> <6ad8043a$1@news.ausics.net> <11b935k$3gr0s$1@dont-email.me> <11b9ud7$3oofr$1@dont-email.me> <11ba545$294uk$1@dont-email.me> <6ad8b59e$1@news.ausics.net> <11barcm$29rup$1@dont-email.me> Content-Language: en-GB From: dxf <dxforth@gmail.com> In-Reply-To: <11barcm$29rup$1@dont-email.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: news.ausics.net Message-ID: <6ad9584f$1@news.ausics.net> Organization: Ausics - https://newsgroups.ausics.net Lines: 66 X-Complaints: abuse@ausics.net Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.ausics.net!not-for-mail