🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #144

Re: F.N floating point format word

#144
From: Anton Ertl
Date: Mon, 19 Oct 2026 18:18
18 lines
2386 bytes
peter <peter.noreply@tin.it> writes:
>I might do a FS.N where n would be significant digits

Or you implement f.rdp
<https://net2o.de/gforth/Floating_002dpoint-output.html#index-f_002erdp>
and get something that is useful for a number of other use cases as
well. F.RDP uses scientific notation if d (decimal places) is too big
for r (field width), among other conditions.  So if you want
scientific notation, use np>nr.  It does not limit itself to p digits,
if it has more room; p is just the minimum shown precision; it's used
for deciding between fixed-point and scientific notation.

- 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: <2026Oct19.201829@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: <119oin2$26n99$1@dont-email.me> <11a01mr$sqrm$1@dont-email.me> <20261005150222.00006cf5@tin.it> <11a16nc$1camn$1@dont-email.me> <20261006080347.00002cdf@tin.it> <11a4tj5$2ku7v$1@dont-email.me> <20261007223526.000065ab@tin.it> <6ac7013a$1@news.ausics.net> <20261008121302.00007412@tin.it> <20261008152645.00001682@tin.it> <11a88oh$3t0ti$1@dont-email.me> <20261008220746.0000042f@tin.it> <11b3g4l$1hubr$1@dont-email.me> <20261019154105.0000595f@tin.it>

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: F.N floating point format word
Date: Mon, 19 Oct 2026 18:18:29 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 18
Message-ID: <2026Oct19.201829@mips.complang.tuwien.ac.at>
References: <119oin2$26n99$1@dont-email.me> <11a01mr$sqrm$1@dont-email.me> <20261005150222.00006cf5@tin.it> <11a16nc$1camn$1@dont-email.me> <20261006080347.00002cdf@tin.it> <11a4tj5$2ku7v$1@dont-email.me> <20261007223526.000065ab@tin.it> <6ac7013a$1@news.ausics.net> <20261008121302.00007412@tin.it> <20261008152645.00001682@tin.it> <11a88oh$3t0ti$1@dont-email.me> <20261008220746.0000042f@tin.it> <11b3g4l$1hubr$1@dont-email.me> <20261019154105.0000595f@tin.it>
Injection-Date: Mon, 19 Oct 2026 18:32:37 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2430640"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/baaERZkZYoBLdEITlKXd2"; posting-host="0de393f1ae6643b26b68cecfa3989455"
Cancel-Lock: sha1:gu2C+wNwFvpe839sdsSxK8xa4Ts= sha256:JDWxhNj5OHRlnb2DkyxrHZ3C654/rCGjST4jHHhGN40=
	sha1:ynZ0JmpOC4DtYdUy1jjrqMDZvhw= sha256:85avdG1BkLUwMJhsCERHNAy+l905WHsOS8KRSJ6cdAA=
X-newsreader: xrn 10.11