Article View: comp.lang.forth
Article #120Re: FCONSTANT specification
From: Anton Ertl
Date: Sun, 18 Oct 2026 06:15
Date: Sun, 18 Oct 2026 06:15
33 lines
2657 bytes
2657 bytes
albert@spenarnc.xs4all.nl writes:
>In article <2026Oct16.174024@mips.complang.tuwien.ac.at>,
>Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>>A better way to think about them is: Each FP number has an exact
>>value, but in some cases conversions to FP and FP operations round,
>>because there is no FP value for the exact result; this rounding leads
>>to errors. The size of this error is the subject of numerical
>>analysis.
>
>Exactly
>0.0001E0 DUP FSIN F-
I assume you mean FDUP here.
>looses a whole lot of precision.
>Maybe "imprecise numbers" is not a bad name after all.
It is. It's not the numbers that are imprecise, it's the operations.
They round (but not in every case).
In the present case the conversion from the decimal string to the FP
number rounds (but that makes little difference for what follows), and
FSIN rounds. F- does not round in this case, but the absolute error
from the FSIN rounding is still present in the result and is
relatively larger compared to the result, so the number of significant
digits is smaller; this phenomenon is called cancellation.
- 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:
<2026Oct18.081501@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-mailReferences:
<11aide4$1ibse$1@dont-email.me> <2026Oct15.075508@mips.complang.tuwien.ac.at> <nnd$259bc6d7$095e6dc6@c0b8c58c46e9a352> <2026Oct16.174024@mips.complang.tuwien.ac.at> <nnd$394cc66f$08a48cb4@da8b86a855ca7c1b>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: Sun, 18 Oct 2026 06:15:01 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 33 Message-ID: <2026Oct18.081501@mips.complang.tuwien.ac.at> References: <11aide4$1ibse$1@dont-email.me> <2026Oct15.075508@mips.complang.tuwien.ac.at> <nnd$259bc6d7$095e6dc6@c0b8c58c46e9a352> <2026Oct16.174024@mips.complang.tuwien.ac.at> <nnd$394cc66f$08a48cb4@da8b86a855ca7c1b> Injection-Date: Sun, 18 Oct 2026 06:40:53 +0000 (UTC) Injection-Info: dont-email.me; logging-data="947539"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gObnA/Jlf691TTPzCZ06I"; posting-host="ba7b1f5472640d23e9d2e2c2f24e9c05" Cancel-Lock: sha1:qy5JXpwbaYHnQ/jX6yckuPSZSW8= sha256:KDWxaOZkSGBnOB44JJtcKtp/lMupCybaiLEgZ/wT+Lo= sha1:no7+LQsO4RiZ/2qweCZzf5VV9w8= sha256:DCUb/KbeibZ+s2JFFEr6glyVsmL09jCKD742T3dmnj0= X-newsreader: xrn 10.11