| Deutsch English Français Italiano |
|
<2025Jan2.165111@mips.complang.tuwien.ac.at> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: FP number syntax
Date: Thu, 02 Jan 2025 15:51:11 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 22
Message-ID: <2025Jan2.165111@mips.complang.tuwien.ac.at>
References: <f3d930ef062d020cd12825545af27eb8cccf9160@i2pn2.org> <2024Dec26.225518@mips.complang.tuwien.ac.at> <nnd$7b4b1b29$728c5657@3874e5d0bc8f1da0> <2024Dec31.225755@mips.complang.tuwien.ac.at> <nnd$13519e7a$346b00fe@a49c4f80952e91b8>
Injection-Date: Thu, 02 Jan 2025 16:59:55 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f1aef10e51c1d1777ea57171f59f6f94";
logging-data="3584719"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vn5xVCFgEUQqL8jsHAYi0"
Cancel-Lock: sha1:XpI7weBkRfEXc889rnqgILxsUXU=
X-newsreader: xrn 10.11
Bytes: 2013
albert@spenarnc.xs4all.nl writes:
>The confusion between 31E0 (hex) 31E0 (fp) 3.10 is another
>roadblock to Forth newbies.
Certainly, especially the latter. The hex problem can be eliminated
by always keeping the BASE as DECIMAL, and writing hex numbers as
$31E0. The 3.10 tradition and the 31. standard can be addressed with
a variation of your statement:
Recognizing a double if it contains no number prefix and one single
period at the end is obsolescent.
One step later a standard Forth system could recognize 3.10 as well as
31. and 31e as FP values, #31. as a double-cell integer, and $31e
as a single-cell integer.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2024: https://euro.theforth.net