🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #85

Re: FCONSTANT specification

#85
From: Anton Ertl
Date: Thu, 15 Oct 2026 05:55
28 lines
2556 bytes
dxf <dxforth@gmail.com> writes:
>On 14/10/2026 7:25 pm, Anton Ertl wrote:
>> What is an "imprecise number"?  In any case, every FP number has a
>> precise value.  It may not be the value you are interested in, but
>> that does not make the value any less precise.  And thinking about FP
>> numbers as "imprecise" or intervals etc. leads you down the path to
>> wrong conclusions.
>
>If the recently-dubbed "high quality" REPRESENTs aren't printing out
>intervals then what are they doing?  Following the leader?

If you give a precise REPRESENT a big-enough buffer, it gives you the
decimal representation of the floating-point value, exactly.

If you give it a buffer that's too short for the exact representation,
you get a rounded result, rounded to the nearest decimal number that
fits in the buffer.

It seems pretty obvious to me that REPRESENT (whether high-quality or
not) does not output an interval.  An interval is indicated by two
numbers, REPRESENT only outputs one.

- 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 2026 CFP: http://www.euroforth.org/ef26/cfp.html
Technical Details
Message-ID: <2026Oct15.075508@mips.complang.tuwien.ac.at>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.lang.forth
Subject: Re: FCONSTANT specification
Date: Thu, 15 Oct 2026 05:55:08 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 28
Message-ID: <2026Oct15.075508@mips.complang.tuwien.ac.at>
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>
Injection-Date: Thu, 15 Oct 2026 06:01:00 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2244311"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18AsUiUNWPIu3L+4SSmsz5v"; posting-host="597db5ff5fb8d21fc1309deab4e71b28"
Cancel-Lock: sha1:341FAa+eCk6JfGqKgzietfIM2hE= sha256:X21G7vfrQr/g9CVGhhFieXaP4q6NDIXEIwSDZlMiBBA=
	sha1:MS6xLFkTsqxrkkqZQ+W6biLvdb4= sha256:n1VXupx7i+51FJiOBNQiSPuKHfUt1xoyAgiWmD0SCq8=
X-newsreader: xrn 10.11