Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #60354
| Newsgroups | comp.lang.forth |
|---|---|
| Date | 2017-06-05 11:20 -0700 |
| References | <a5b211f0-f38f-4188-9cfb-ac80ba0e482f@googlegroups.com> <b6285ba7-f386-44f5-a58a-6a761695d025@googlegroups.com> <oh0med$dtd$1@cherry.spenarnc.xs4all.nl> <y-OdnSNA0raclKjEnZ2dnUU7-WudnZ2d@supernews.com> <oh423b$12g$1@dont-email.me> |
| Message-ID | <fe5064df-e4ea-4da7-bffa-ea4005235723@googlegroups.com> (permalink) |
| Subject | Re: RFD: Drop double numbers as input format |
| From | minforth@arcor.de |
Am Montag, 5. Juni 2017 18:53:21 UTC+2 schrieb Cecil - k5nwa: > On 6/5/2017 2:32 AM, Andrew Haley wrote: > > Albert van der Horst <albert@cherry.spenarnc.xs4all.nl> wrote: > >> In article <b6285ba7-f386-44f5-a58a-6a761695d025@googlegroups.com>, > >> <mhx@iae.nl> wrote: > >> <SNIP> > >>> A minimal floating-point number consists of a single <digit> > >>> between 0 and 9, followed by 'E'. In addition to this, base > >>> should be decimal. Therefore, confusion with a double > >>> (containing a '.' anywhere) is only possible when this > >>> double also contains 'E' followed by *<digit0>. This > >>> obviously makes no sense (for an unprefixed double) when > >>> base is decimal. > >> > >> Not using BASE for floating point is a missed opportunity. > >> Using E for exponent instead of e.g. ~ is a design error. > > > > I understand that Forth is different from other languages by design. > > However, is it important to use a notation for floating-point numbers > > that is different from, say, pocket calculators, other programming > > languages, and IEEE-754? I'd welcome hex floating-point I/O but I'd > > be a lot less keen for Forth to use a notation that's not standard- > > compliant. > > > > Andrew. > > > It's not just that a few languages use a decimal number but everyone > that went to school was taught that 10.3 is a decimal number with an > integer and a fraction part separated by a decimal point. > > The use of a decimal notation to indicate a double was a bad idea from > day one since it went counter to everyone's notion of what a decimal > number is, I understand that in the early days floating point was hard > on a CPU but still to indicate a double something else should have been > used. > > This whole use of a decimal point to indicate a double sized number > makes Forther's look ignorant since they ignore decimal number notation > that has been taught and used for many centuries. > > -- > Cecil - k5nw In the early days one could use DPL after numeric conversion for loading / implementing fixed-point number math (often sufficient for simple engineering tasks, precise for financial tasks) or real floating-point number math (hand coded before coprocessors like the 8087 appeared). I always found it strange that DPL never made it into the standard. By checking DPL and BASE most of the discussed number input format ambiguities would vanish.
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
RFD: Drop double numbers as input format Matthias Trute <matthias.trute@gmail.com> - 2017-06-04 01:25 -0700
Re: RFD: Drop double numbers as input format Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-06-04 03:45 -0500
Re: RFD: Drop double numbers as input format mhx@iae.nl - 2017-06-04 02:10 -0700
Re: RFD: Drop double numbers as input format albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-06-04 12:12 +0200
Re: RFD: Drop double numbers as input format Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-06-05 02:32 -0500
Re: RFD: Drop double numbers as input format albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-06-05 10:19 +0200
Re: RFD: Drop double numbers as input format anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-06-05 09:14 +0000
Re: RFD: Drop double numbers as input format Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-06-05 04:57 -0500
Re: RFD: Drop double numbers as input format Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-06-05 04:51 -0500
Re: RFD: Drop double numbers as input format Cecil Bayona <cbayona@cbayona.com> - 2017-06-05 11:53 -0500
Re: RFD: Drop double numbers as input format Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-06-05 12:29 -0500
Re: RFD: Drop double numbers as input format minforth@arcor.de - 2017-06-05 11:20 -0700
Re: RFD: Drop double numbers as input format Julian Fondren <julian.fondren@gmail.com> - 2017-06-05 11:25 -0700
Re: RFD: Drop double numbers as input format minforth@arcor.de - 2017-06-06 00:50 -0700
Re: RFD: Drop double numbers as input format stephen@mpeforth.com (Stephen Pelc) - 2017-06-06 10:16 +0000
Re: RFD: Drop double numbers as input format minforth@arcor.de - 2017-06-06 05:30 -0700
Re: RFD: Drop double numbers as input format minforth@arcor.de - 2017-06-06 22:54 -0700
Re: RFD: Drop double numbers as input format Mark Wills <markwills1970@gmail.com> - 2017-06-06 02:12 -0700
Re: RFD: Drop double numbers as input format Andrew Haley <andrew29@littlepinkcloud.invalid> - 2017-06-06 04:23 -0500
Re: RFD: Drop double numbers as input format Cecil Bayona <cbayona@cbayona.com> - 2017-06-06 10:26 -0500
Re: RFD: Drop double numbers as input format anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-06-06 09:52 +0000
Re: RFD: Drop double numbers as input format Raimond Dragomir <raimond.dragomir@gmail.com> - 2017-06-06 04:57 -0700
Re: RFD: Drop double numbers as input format Mark Wills <markwills1970@gmail.com> - 2017-06-06 06:01 -0700
Re: RFD: Drop double numbers as input format Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2017-06-06 18:07 +0100
Re: RFD: Drop double numbers as input format Julian Fondren <julian.fondren@gmail.com> - 2017-06-06 08:09 -0700
Re: RFD: Drop double numbers as input format Mark Wills <markwills1970@gmail.com> - 2017-06-06 11:51 -0700
Re: RFD: Drop double numbers as input format Julian Fondren <julian.fondren@gmail.com> - 2017-06-06 12:19 -0700
Re: RFD: Drop double numbers as input format Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2017-06-10 23:23 +0100
Re: RFD: Drop double numbers as input format Paul Rubin <no.email@nospam.invalid> - 2017-06-04 17:05 -0700
Re: RFD: Drop double numbers as input format rickman <gnuarm@gmail.com> - 2017-06-04 21:38 -0400
Re: RFD: Drop double numbers as input format Julian Fondren <julian.fondren@gmail.com> - 2017-06-04 20:26 -0700
Re: RFD: Drop double numbers as input format mhx@iae.nl - 2017-06-05 00:01 -0700
Re: RFD: Drop double numbers as input format Matthias Trute <matthias.trute@gmail.com> - 2017-06-05 01:18 -0700
Re: RFD: Drop double numbers as input format mhx@iae.nl - 2017-06-04 23:47 -0700
Re: RFD: Drop double numbers as input format Ron Aaron <rambamist@gmail.com> - 2017-06-05 09:56 +0300
Re: RFD: Drop double numbers as input format Mark Wills <markwills1970@gmail.com> - 2017-06-06 01:46 -0700
Re: RFD: Drop double numbers as input format "HAA" <someone@microsoft.com> - 2017-06-07 21:44 +1000
Re: RFD: Drop double numbers as input format minforth@arcor.de - 2017-06-07 05:13 -0700
Re: RFD: Drop double numbers as input format "HAA" <someone@microsoft.com> - 2017-06-08 12:36 +1000
Re: RFD: Drop double numbers as input format Raimond Dragomir <raimond.dragomir@gmail.com> - 2017-06-07 07:33 -0700
Re: RFD: Drop double numbers as input format "HAA" <someone@microsoft.com> - 2017-06-08 12:34 +1000
Re: RFD: Drop double numbers as input format Alex <alex@rivadpm.com> - 2017-06-08 09:55 +0100
Re: RFD: Drop double numbers as input format "HAA" <someone@microsoft.com> - 2017-06-11 17:22 +1000
Re: RFD: Drop double numbers as input format hughaguilar96@gmail.com - 2017-06-08 17:13 -0700
Re: RFD: Drop double numbers as input format mhx@iae.nl - 2017-06-04 02:18 -0700
Re: RFD: Drop double numbers as input format "Rudy Velthuis" <newsgroups@rvelthuis.de> - 2017-06-04 09:54 +0000
Re: RFD: Drop double numbers as input format albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2017-06-04 12:07 +0200
Re: RFD: Drop double numbers as input format anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-06-04 10:18 +0000
Re: RFD: Drop double numbers as input format mhx@iae.nl - 2017-06-04 05:47 -0700
Re: RFD: Drop double numbers as input format anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-06-04 15:44 +0000
Re: RFD: Drop double numbers as input format Matthias Trute <matthias.trute@gmail.com> - 2017-06-04 09:10 -0700
Re: RFD: Drop double numbers as input format anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-06-04 16:21 +0000
Re: RFD: Drop double numbers as input format Coos Haak <htrofhc@gmail.com> - 2017-06-04 18:33 +0200
Re: RFD: Drop double numbers as input format Bernd Paysan <bernd@net2o.de> - 2017-06-07 01:21 +0200
Re: RFD: Drop double numbers as input format minforth@arcor.de - 2017-06-06 22:57 -0700
Re: RFD: Drop double numbers as input format Julian Fondren <julian.fondren@gmail.com> - 2017-06-06 23:34 -0700
Re: RFD: Drop double numbers as input format minforth@arcor.de - 2017-06-07 01:12 -0700
Re: RFD: Drop double numbers as input format The Beez <the.beez.speaks@gmail.com> - 2017-06-07 02:38 -0700
Re: RFD: Drop double numbers as input format JennyB <jennybrien@googlemail.com> - 2017-06-07 02:45 -0700
Re: RFD: Drop double numbers as input format foxaudioresearch@gmail.com - 2017-06-08 18:34 -0700
Re: RFD: Drop double numbers as input format Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2017-06-10 23:08 +0100
Re: RFD: Drop double numbers as input format anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-06-11 12:32 +0000
Re: RFD: Drop double numbers as input format "Rudy Velthuis" <newsgroups@rvelthuis.de> - 2017-06-09 18:07 +0000
csiph-web