Article View: comp.lang.forth
Article #13Re: F.N floating point format word
From: Anton Ertl
Date: Wed, 07 Oct 2026 08:10
Date: Wed, 07 Oct 2026 08:10
18 lines
2024 bytes
2024 bytes
Krishna Myneni <krishna.myneni@ccreweb.org> writes:
>Since binary -> decimal conversion with 17 significant digits is
>guaranteed to cycle in a round trip for binary64
It will give you a binary->decimal->binary round trip, but the decimal
number is not always the shortest one that gives this FP number. E.g.:
0.9e 17 e.p \ .90000000000000002e
while obviously "0.9e" already gives you this FP number. E. tries
15-17 digits, and outputs the first one where the round trip works.
- 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:
<2026Oct7.101011@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:
<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>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: Wed, 07 Oct 2026 08:10:11 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 18 Message-ID: <2026Oct7.101011@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> Injection-Date: Wed, 07 Oct 2026 08:14:29 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2739401"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/368mvNUzO8TQE/HxGD+Vs"; posting-host="0d602625e1788155471720f12e357c3f" Cancel-Lock: sha1:urFXKAHDoOqwN99bsBHb+wDzpbQ= sha256:fbQP4RIlLTht2RmwDI2pQRMtpzkZTz7X1uK4y22bz9c= sha1:OIJvTYh8ArMTbEC/fbe2Ep0gIVc= sha256:nK0g+yD5Chx4D9BQIjwRFxn7sDxcQoAmN7jBwR6bWaw= X-newsreader: xrn 10.11