Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #135692
| Date | 2026-09-13 20:33 +1000 |
|---|---|
| Subject | Re: ddfloat library: the behavior of >dd |
| Newsgroups | comp.lang.forth |
| References | (4 earlier) <11829tr$3chqi$1@dont-email.me> <11833g2$1818h$1@dont-email.me> <6aa549e4$1@news.ausics.net> <6aa58871$1@news.ausics.net> <1185hme$195e1$1@dont-email.me> |
| From | dxf <dxforth@gmail.com> |
| Message-ID | <6aa67bfa$1@news.ausics.net> (permalink) |
| Organization | Ausics - https://newsgroups.ausics.net |
On 13/09/2026 5:00 pm, marcel hendrix wrote: > On 9/12/2026 7:14 PM, dxf wrote: >> dd# 1e-296 ddfs. 1.0000000000000000000000000000000E-296 ok >> dd# 1e-297 ddfs. 1.0000000000000000000000000000000E-297 ok > [..] >> dd# 1e+300 ddfs. INF ok >> dd# 1e+301 ddfs. INF ok >> \ dd# 1e+302 ddfs. NAN/INF ok >> \ dd# 1e+303 ddfs. NAN/INF ok >> \ dd# 1e+304 ddfs. NAN/INF ok >> \ dd# 1e+305 ddfs. NAN/INF ok > > My interest is only in >DD . I now allow the exponent range [-294,+304] (this gives a reasonable mantissa size, e.g. > FORTH> s" 1000.0e+304 " >dd ddfe. 1.000000000000000000000000000000e307 > > Nan/Inf are caught because their dp and/or exponent indicator are missing and there are no digits present: > FORTH> s" nan " >dd ddfe. >>DD :: dp must be `.` > FORTH> s" -inf " >dd ddfe. >>DD :: dp must be `.` > FORTH> s" 1e " >dd ddfe. 1.000000000000000000000000000000e0 > FORTH> s" 1.1 " >dd ddfe. 1.100000000000000000000000000000e0 ok > FORTH> s" 1.1e " >dd ddfe. 1.100000000000000000000000000000e0 ok > FORTH> s" 1.1e1" >dd ddfe. 1.100000000000000000000000000000e1 ok > FORTH> 53-bits! s" 1..1e++1" >dd ddfe. > Error -2 >>DD :: not a valid exponent sign ? > > I just noticed these problem: > FORTH> s" 1" >dd ddfe. 1.000000000000000000000000000000e303 ok > FORTH> s" 1.1e++1" >dd ddfe. 1.100000000000000000000000000000e0 ok > FORTH> s" 1.1e+-1" >dd ddfe. 1.100000000000000000000000000000e0 ok > FORTH> s" 1.1e-+1" >dd ddfe. 1.100000000000000000000000000000e0 ok > > The '.' can be replaced by ',' and the 'e' by 'd' as settable options. I assume you're not using my >DD any more. The latter is creating unintended consequences for DDFS. in the form of patches to avoid infinite loops. Either way it's looking messy.
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-10 19:33 +0200
Re: ddfloat library: the behavior of >dd Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-10 13:35 -0500
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-10 22:10 +0200
Re: ddfloat library: the behavior of >dd Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-10 16:51 -0500
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-11 12:16 +1000
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-11 12:05 +0200
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-12 00:27 +0200
Re: ddfloat library: the behavior of >dd Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-11 20:29 -0500
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-12 12:02 +1000
Re: ddfloat library: the behavior of >dd Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-12 10:24 -0500
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-12 10:45 +0200
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-12 19:51 +1000
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-12 22:47 +1000
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-13 03:14 +1000
Re: ddfloat library: the behavior of >dd Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-12 13:02 -0500
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-13 15:44 +1000
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-13 09:00 +0200
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-13 20:33 +1000
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-14 13:28 +1000
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-14 10:09 +0200
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-14 20:00 +1000
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-14 12:22 +0200
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-14 21:59 +1000
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-14 14:26 +0200
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-15 01:32 +1000
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-14 21:08 +0200
Re: ddfloat library: the behavior of >dd Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-14 15:25 -0500
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-15 13:11 +1000
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-15 14:06 +0200
Re: ddfloat library: the behavior of >dd dxf <dxforth@gmail.com> - 2026-09-16 00:05 +1000
Re: ddfloat library: the behavior of >dd anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-09-14 15:00 +0000
Re: ddfloat library: the behavior of >dd marcel hendrix <mhx@iae.nl> - 2026-09-14 21:15 +0200
Re: ddfloat library: the behavior of >dd Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-14 15:29 -0500
Re: ddfloat library: the behavior of >dd anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-09-14 20:58 +0000
Re: ddfloat library: the behavior of >dd Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-15 07:33 -0500
Re: ddfloat library: the behavior of >dd anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-09-15 15:53 +0000
Re: ddfloat library: the behavior of >dd Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-15 15:23 -0500
Re: ddfloat library: the behavior of >dd Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-15 17:53 -0500
csiph-web