Article View: comp.lang.forth
Article #101Re: FCONSTANT specification
From: Krishna Myneni
Date: Sat, 17 Oct 2026 04:37
Date: Sat, 17 Oct 2026 04:37
49 lines
3661 bytes
3661 bytes
On 10/16/26 9:37 PM, dxf wrote: > On 16/10/2026 4:12 pm, Anton Ertl wrote: >> 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? > > Did you have a problem understanding it? I've never used AI. > >> 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. > > There's 'uses' but you can't give any. > Yes, you are clearly smarter than the entire IEEE 754 standards committee, which specified that a system should leave the number of digits requested in a binary to decimal conversion to be unbounded. One use case clearly shows up in this thread with Marcel's implementation of xdfloats.
Technical Details
Message-ID:
<11auu2d$3t6hf$2@dont-email.me>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> <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>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: Krishna Myneni <krishna.myneni@ccreweb.org> Newsgroups: comp.lang.forth Subject: Re: FCONSTANT specification Date: Fri, 16 Oct 2026 23:37:33 -0500 Organization: A noiseless patient Spider Lines: 49 Message-ID: <11auu2d$3t6hf$2@dont-email.me> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 17 Oct 2026 04:37:34 +0000 (UTC) Injection-Info: dont-email.me; logging-data="4102703"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vqcJ3/+7obgVI2I8yj4W2"; posting-host="e44790808d9367a5c724567d377e4b9f" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:zps30TtNiPlOj1RuiLllSyfGTjg= sha256:VJbsM6Y/xAZPhfli52ErqRbAAa/6maeGY9FdPYRqK9k= sha1:yg30YYEmw7SRyThM8XzndH9xPF4= sha256:rooUlNlBwgspqG2g1Z5SBMjjdAyhlZwdmSiAt/7qnnA= In-Reply-To: <6ad2df65$1@news.ausics.net> Content-Language: en-US