🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #89

Re: FCONSTANT specification

#89
From: Anton Ertl
Date: Fri, 16 Oct 2026 05:12
54 lines
3607 bytes
dxf <dxforth@gmail.com> writes:
>On 15/10/2026 4:55 pm, Anton Ertl wrote:
>> 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.
>
>It gives a decimal representation of the nearest storage slot that the
>floating-point value was assigned.

Storage slot?  Are your postings AI slop?

Anyway, every binary FP number can be represented exactly as decimal
number, but some FP numbers need a large number of digits in decimal
representation.  Gforth's E.EXACT outputs this decimal representation,
when based on an appropriate ecvt_r() (such as that in glibc 2.36).

>That floating-point value never had
>more than 17 useful digits.

How many digits are useful depends on the use.  In particular, if you
want to know the exact decimal representation of an FP value, often
more than 17 digits are necessary, and therefore, for this use,
useful.

>The question then becomes why?  Why deliberately misrepresent users?
>I'd have to fall on my head.

More AI slop?

>> 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.
>
>Print two and the interval becomes obvious.

REPRESENT does not print two.  And if you invoke REPRESENT twice with
the same parameters, you will get the same results.

- 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: <2026Oct16.071212@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> <2026Oct15.075508@mips.complang.tuwien.ac.at> <6ad17c5a$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: Fri, 16 Oct 2026 05:12:12 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 54
Message-ID: <2026Oct16.071212@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> <2026Oct15.075508@mips.complang.tuwien.ac.at> <6ad17c5a$1@news.ausics.net>
Injection-Date: Fri, 16 Oct 2026 05:35:04 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3173223"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+3y/NuFADs1crlKY3h1JPU"; posting-host="eb1d16796a2f3c3c419013704a6bb9be"
Cancel-Lock: sha1:8cRb/wFroj8ZY1Yw5arkBd9bPQs= sha256:CtDGl3LEQyeyES6ynDB2oyr+IlKpeK40qo7LMZowF0M=
	sha1:3mrUPrSLtmzN8mN84e3rZVk4PPY= sha256:IN+yHfPUX14/kA5kxrd8ff3uzIuIo/8iSwqIn5yOX0I=
X-newsreader: xrn 10.11