Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #135315
| Date | 2026-08-08 14:39 +1000 |
|---|---|
| Subject | Re: E.P E. E.EXACT |
| Newsgroups | comp.lang.forth |
| References | (2 earlier) <2026Aug6.160054@mips.complang.tuwien.ac.at> <1152a6j$3uh9r$1@dont-email.me> <1152lu4$3788$1@dont-email.me> <6a752ecb$1@news.ausics.net> <2026Aug7.121124@mips.complang.tuwien.ac.at> |
| From | dxf <dxforth@gmail.com> |
| Message-ID | <6a76b305$1@news.ausics.net> (permalink) |
| Organization | Ausics - https://newsgroups.ausics.net |
On 7/08/2026 8:11 pm, Anton Ertl wrote: > dxf <dxforth@gmail.com> writes: >> AFAICS E.EXACT E. are for academics only. > > What makes you think so? > > E. is intended to be the go-to way to print FP numbers if there are no > formatting constraints. In particular, E. produces an output that you > can copy-and-paste again as input for the Forth text interpreter. > >> E.P just tells me the minimal >> and ambiguous functions ANS suggested were never going to be enough. > > The standard FP-printing words all have shortcomings: > > F. produces output that cannot be cut and pasted into the text > interpreter. That may be but has nothing to do with F. which outputs classic fixed- point notation. If F. has an issue it's ambiguity in what precisely is printed. Programmers need that detail to plan applications. See end of post which compares F. across a several forths. FS. FE. also show variation though not as pronounced. > Moreover, if implemented as specified in the standard, > you get really long outputs when printing numbers like 1e300 or 1e-300. Good. That's exactly what fixed-point notation predicts. > The output of FS. and FE. is not what I want when printing numbers > with absolute values between 0.001e and 1000000e. I agree that's useful and ANS doesn't preclude making such a function from existing ones. > E.P is there for cases when you want shorter output than E. gives, at > the cost of a loss of precision. So for all practical purposes E.P differs from Gforth's F. only in respect of its switching to scientific mode? > > - anton F. output from various forths as mentioned: \ Show F. output 8 set-precision 2e 3e f/ f. 2e4 3e f/ f. 2e-4 3e f/ f. 1e f. 1e4 f. 1e-4 f. \\ SwiftForth: 2e 3e f/ f. 0.66666667 ok 2e4 3e f/ f. 6666.66666667 ok 2e-4 3e f/ f. 0.00006667 ok 1e f. 1.00000000 ok 1e4 f. 10000.00000000 ok 1e-4 f. 0.00010000 ok VFX: 2e 3e f/ f. 0.66666667 ok 2e4 3e f/ f. 6666.6667 ok 2e-4 3e f/ f. 0.000066666667 ok 1e f. 1. ok 1e4 f. 10000. ok 1e-4 f. 0.0001 ok Gforth: 2e 3e f/ f. 0.66666667 ok 2e4 3e f/ f. 6666.6667 ok 2e-4 3e f/ f. 0.000066666667 ok 1e f. 1. ok 1e4 f. 10000. ok 1e-4 f. 0.0001 ok Win32Forth: 2e 3e f/ f. .66666667 ok 2e4 3e f/ f. 6666.6667 ok 2e-4 3e f/ f. .00006667 ok 1e f. 1.0000000 ok 1e4 f. 10000.000 ok 1e-4 f. .00010000 ok NT/Forth: 2e 3e f/ f. 0.66666667 ok 2e4 3e f/ f. 6666.6667 ok 2e-4 3e f/ f. 0.000066666667 ok 1e f. 1.0000000 ok 1e4 f. 10000.000 ok 1e-4 f. 0.00010000000 ok K-Forth: (CR not shown) 2e 3e f/ f. 0.666667 ok 2e4 3e f/ f. 6666.67 ok 2e-4 3e f/ f. 6.66667e-05 ok 1e f. 1 ok 1e4 f. 10000 ok 1e-4 f. 0.0001 ok MinForth: 2e 3e f/ f. 0.66666667 ok 2e4 3e f/ f. 6666.6667 ok 2e-4 3e f/ f. 0.00006667 ok 1e f. 1. ok 1e4 f. 10000. ok 1e-4 f. 0.0001 ok
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-05 18:02 +0000
Re: E.P E. E.EXACT Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-06 08:13 -0500
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-06 14:00 +0000
Re: E.P E. E.EXACT Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-06 10:45 -0500
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-06 15:58 +0000
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-06 17:20 +0000
Re: E.P E. E.EXACT marcel hendrix <mhx@iae.nl> - 2026-08-06 21:05 +0200
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-06 20:38 +0000
Re: E.P E. E.EXACT Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-06 18:44 -0500
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-07 11:03 +1000
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-07 10:11 +0000
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-08 14:39 +1000
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-08 06:32 +0000
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-09 04:50 +1000
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-10 20:01 +1000
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-10 18:06 +0000
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-10 17:24 +0000
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-11 14:01 +1000
Re: E.P E. E.EXACT Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-10 22:10 -0500
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-11 04:56 +0000
Re: E.P E. E.EXACT Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-11 22:16 -0500
Re: E.P E. E.EXACT Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-12 05:47 -0500
Re: E.P E. E.EXACT peter <peter.noreply@tin.it> - 2026-08-12 18:03 +0200
Re: E.P E. E.EXACT Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-12 11:48 -0500
Re: E.P E. E.EXACT marcel hendrix <mhx@iae.nl> - 2026-08-08 09:14 +0200
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-08 09:40 +0000
Re: E.P E. E.EXACT marcel hendrix <mhx@iae.nl> - 2026-08-08 15:26 +0200
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-10 16:43 +0000
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-09 13:43 +1000
Re: E.P E. E.EXACT marcel hendrix <mhx@iae.nl> - 2026-08-09 07:19 +0200
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-10 19:15 +1000
Re: E.P E. E.EXACT marcel hendrix <mhx@iae.nl> - 2026-08-10 13:17 +0200
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-10 22:59 +1000
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-10 23:54 +1000
Re: E.P E. E.EXACT marcel hendrix <mhx@iae.nl> - 2026-08-10 20:42 +0200
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-11 17:10 +1000
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-12 14:04 +1000
Re: E.P E. E.EXACT albert@spenarnc.xs4all.nl - 2026-08-22 16:43 +0200
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-22 15:47 +0000
Re: E.P E. E.EXACT albert@spenarnc.xs4all.nl - 2026-08-22 18:27 +0200
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-22 16:40 +0000
Re: E.P E. E.EXACT albert@spenarnc.xs4all.nl - 2026-08-22 19:42 +0200
Re: E.P E. E.EXACT anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-22 18:03 +0000
Re: E.P E. E.EXACT albert@spenarnc.xs4all.nl - 2026-08-22 22:56 +0200
Re: E.P E. E.EXACT marcel hendrix <mhx@iae.nl> - 2026-08-23 00:50 +0200
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-23 12:25 +1000
Re: E.P E. E.EXACT Hans Bezemer <the.beez.speaks@gmail.com> - 2026-08-09 14:52 +0200
Re: E.P E. E.EXACT Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-07 07:50 -0500
Re: E.P E. E.EXACT dxf <dxforth@gmail.com> - 2026-08-08 12:33 +1000
Re: E.P E. E.EXACT albert@spenarnc.xs4all.nl - 2026-08-22 17:01 +0200
Re: E.P E. E.EXACT albert@spenarnc.xs4all.nl - 2026-08-22 16:15 +0200
csiph-web