Article View: comp.lang.forth
Article #203Re: FCONSTANT specification
From: dxf
Date: Sat, 31 Oct 2026 02:30
Date: Sat, 31 Oct 2026 02:30
23 lines
2688 bytes
2688 bytes
On 29/10/2026 10:08 pm, marcel hendrix wrote: > On 10/29/2026 10:01 AM, dxf wrote: >> As previously mentioned it makes no sense that one can output more significant digits >> than one can input - in anyone's universe. > > No doubt about that. > >> Whatever GCC is printing - it's not what >> the user entered. > > I do that sometimes when I don't know what the hardware/software details of the machine/language are, but do know what I want it to approximate as best as possible, if not exactly. > > That does not mean that I wouldn't be surprised if .90000000000000007e e. comes back as 9.0000000000000007000e-1 but .90000000000000000076e e. shows 9.0000000000000000098e-1. ( Unless I now the hardware and software details of the machine. ) > > However, shouldn't we then also do something about > 1000000000000000000 7 / . 142857142857142857 vs > 1000000000000000000000 7 / . 553688574240601819 ? I doubt programmers are surprised by arithmetic overflow. Occasionally I've run into entered literals being too large and not noticing. Whether the compiler detects it appears to depend upon on the language and its conventions. When I looked, C compilers (like Forth) didn't but Pascal did.
Technical Details
Message-ID:
<6ae552e2$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:
<11aide4$1ibse$1@dont-email.me> <2026Oct12.203631@mips.complang.tuwien.ac.at> <11am4ae$fte4$1@dont-email.me> <nnd$6e3248f1$0599409a@3ae3c368d79558dd> <2026Oct14.102517@mips.complang.tuwien.ac.at> <6ad02ef0$1@news.ausics.net> <2026Oct15.075508@mips.complang.tuwien.ac.at> <6ad17c5a$1@news.ausics.net> <2026Oct16.071212@mips.complang.tuwien.ac.at> <6ad2df65$1@news.ausics.net> <11auu2d$3t6hf$2@dont-email.me> <11b2cv4$142ig$1@dont-email.me> <11b2nct$17v9i$1@dont-email.me> <11bl2ar$3lj23$1@dont-email.me> <11bobpu$trdt$1@dont-email.me> <11bogem$vnlk$1@dont-email.me> <6ae16eae$1@news.ausics.net> <11bsn80$2cg90$1@dont-email.me> <6ae2b06f$1@news.ausics.net> <6ae30b4f$1@news.ausics.net> <11bv9fn$3494b$1@dont-email.me>Show Full Headers
Complete Article Headers
Date: Sat, 31 Oct 2026 13:30:58 +1100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: FCONSTANT specification Newsgroups: comp.lang.forth References: <11aide4$1ibse$1@dont-email.me> <2026Oct12.203631@mips.complang.tuwien.ac.at> <11am4ae$fte4$1@dont-email.me> <nnd$6e3248f1$0599409a@3ae3c368d79558dd> <2026Oct14.102517@mips.complang.tuwien.ac.at> <6ad02ef0$1@news.ausics.net> <2026Oct15.075508@mips.complang.tuwien.ac.at> <6ad17c5a$1@news.ausics.net> <2026Oct16.071212@mips.complang.tuwien.ac.at> <6ad2df65$1@news.ausics.net> <11auu2d$3t6hf$2@dont-email.me> <11b2cv4$142ig$1@dont-email.me> <11b2nct$17v9i$1@dont-email.me> <11bl2ar$3lj23$1@dont-email.me> <11bobpu$trdt$1@dont-email.me> <11bogem$vnlk$1@dont-email.me> <6ae16eae$1@news.ausics.net> <11bsn80$2cg90$1@dont-email.me> <6ae2b06f$1@news.ausics.net> <6ae30b4f$1@news.ausics.net> <11bv9fn$3494b$1@dont-email.me> Content-Language: en-GB From: dxf <dxforth@gmail.com> In-Reply-To: <11bv9fn$3494b$1@dont-email.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: news.ausics.net Message-ID: <6ae552e2$1@news.ausics.net> Organization: Ausics - https://newsgroups.ausics.net Lines: 23 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