Article View: comp.lang.forth
Article #168Re: Tests for (DDFS.)
From: Krishna Myneni
Date: Thu, 22 Oct 2026 12:37
Date: Thu, 22 Oct 2026 12:37
25 lines
2519 bytes
2519 bytes
On 10/22/26 1:32 AM, Anton Ertl wrote: > marcel hendrix <mhx@iae.nl> writes: >> None of my floating point code rounds in any of the printing words, it >> indeed truncates. For it to be automatic, an idea about the precision >> of the calculation is needed and the printing knows nothing about that. > > I don't see a difference between rounding and truncation here. If the > program knows the precision, it can use a appropriate word that > outputs only the significant digits or marks the last significant > digit (e.g., by underlining it). However, given that the program > usually does not compute this information, the Gforth words that you > can pass a precision to, such as F.RDP and E.P, treat it as a minimum > rather than exact number of significant digits to be shown, i.e., they > may show more digits. E.g.: > > 123e 2 e.p \ prints "123e" > This sort of behavior, not getting what you asked for, is not likely to be used by the scientific community. In calculations or experiments, it is important to show the actual number of significant digits. -- KM
Technical Details
Message-ID:
<11bd02k$r3dq$1@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:
<11b7rcu$31u3u$1@dont-email.me> <11b8427$35l54$1@dont-email.me> <11b887g$p2rm$1@dont-email.me> <6ad8043a$1@news.ausics.net> <11b9pei$28p9l$1@dont-email.me> <2026Oct22.083247@mips.complang.tuwien.ac.at>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: Tests for (DDFS.) Date: Thu, 22 Oct 2026 07:37:40 -0500 Organization: A noiseless patient Spider Lines: 25 Message-ID: <11bd02k$r3dq$1@dont-email.me> References: <11b7rcu$31u3u$1@dont-email.me> <11b8427$35l54$1@dont-email.me> <11b887g$p2rm$1@dont-email.me> <6ad8043a$1@news.ausics.net> <11b9pei$28p9l$1@dont-email.me> <2026Oct22.083247@mips.complang.tuwien.ac.at> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 22 Oct 2026 12:37:42 +0000 (UTC) Injection-Info: dont-email.me; logging-data="888250"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VfXDEbKSdLpojFMtCCxMU"; posting-host="dd085885729643d26e95383f320ffc9b" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:XCQp1WJT6F9fkDs9pODeUZAcSHA= sha256:iwT92e38V77l2S9/hTjBFkg7o7DaFl39jex3jixKpG4= sha1:sskR9JUWaVFDtt31w5uyo0GGzCA= sha256:xTjcctkgmeeINU1k5qiAJRvZ/OWAsz8GRghbyMTDK9c= Content-Language: en-US In-Reply-To: <2026Oct22.083247@mips.complang.tuwien.ac.at>