Article View: comp.lang.forth
Article #192Re: FCONSTANT specification
From: dxf
Date: Thu, 29 Oct 2026 09:01
Date: Thu, 29 Oct 2026 09:01
35 lines
3313 bytes
3313 bytes
On 29/10/2026 1:33 pm, dxf wrote: > On 28/10/2026 10:45 pm, Krishna Myneni wrote: >> On 10/27/26 10:40 PM, dxf wrote: >> ... >>>> >>>> I don't believe I am smarter than the IEEE 754 committee, which is why I made the effort to read the standard and try to understand what it says. >>>> ... >>> >>> The standard says different things depending upon which version one reads. >>> >> ... >>> Back to IEEE-754. There seems quite a difference between the 1985 and 2008 >>> versions. AFAICT the former gives no meaning to mantissa digits greater than >>> 17 in the case of double precision. It's a problem for those who relied on >>> 'smart' people to think for them because now they're presented with different >>> standards, different committees, different thinking. >>> >> >> You are still compliant with the standard if you support 17 digit input and output *and* use only round to nearest, despite the updated recommendation that the number of decimal digits be unbounded. There is backwards compatibility in the standard. > > Compliance is the last thing. Rationale comes first. I believe the rationale > behind the 1985 requirement (even if not expressly stated) was extracting the last > bit of usable data, cost not considered. Has IEEE-754 2008 posted a rationale for > their extension? Because nothing I've seen posted here suggests a benefit - quite > the opposite. Reading 5.12.2 again it's not clear to me that the standard is entitling anyone to print more than 17 significant digits in the case of binary64. Rather it lets the implementer specify a limit on number of digits for conversion. I've used forths where entering more than 20 digits makes them go haywire. As previously mentioned it makes no sense that one can output more significant digits than one can input - in anyone's universe. Whatever GCC is printing - it's not what the user entered.
Technical Details
Message-ID:
<6ae30b4f$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>Show Full Headers
Complete Article Headers
Date: Thu, 29 Oct 2026 20:01:02 +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> Content-Language: en-GB From: dxf <dxforth@gmail.com> In-Reply-To: <6ae2b06f$1@news.ausics.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: news.ausics.net Message-ID: <6ae30b4f$1@news.ausics.net> Organization: Ausics - https://newsgroups.ausics.net Lines: 35 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