Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #132068
| Date | 2024-08-30 18:03 +1000 |
|---|---|
| Subject | Re: Display Engineering Notation with SI Prefix |
| Newsgroups | comp.lang.forth |
| References | (2 earlier) <b551b3b6939980752fc024b73e3e722a@www.novabbs.com> <66d06bf8@news.ausics.net> <9abad5353f8d82a5af911c82bcd2d404@www.novabbs.com> <66d12ad7$1@news.ausics.net> <77ea156ee1b693638011cfe1b9db7acd@www.novabbs.com> |
| From | dxf <dxforth@gmail.com> |
| Message-ID | <66d17ccd$1@news.ausics.net> (permalink) |
| Organization | Ausics - https://newsgroups.ausics.net |
On 30/08/2024 4:30 pm, mhx wrote: > On Fri, 30 Aug 2024 2:13:43 +0000, dxf wrote: > [..] >>> 3 set-precision ok >>> -1e 0e 0.5e 0e z^ z. 0.0000000000000000612 + i1. ok > [..] >> Can't say without knowing what was the criteria. If a user wants >> to show the result to 3 significant digits, who can argue with that. >> 3 significant digits is about right for (ENG.) applications. > > When the user wants 3 significant digits according to the mathematical > definition there is no discussion that SET-PRECISION is appropriate. > > If a system is to produce 100 Watts, and an approximate model of the > losses returns 0.0000000000000000612 Watts, then that is quite probably > not the wanted output (because it tells you the resolution of the > floating point package, not the accuracy of the approximation). > However, when that same model returns 100 Watts for the full output > power, 100 or 100.0 is (probably) the expectation. Extra steps are > needed > to print the losses in a useful way, and those steps match perfectly > with PLACES. PLACES would also work to print the full power as 100. > It is not ideal, but the reason it is not ideal has nothing to do with > SET-PRECISION . If the argument is certain apps work well with PLACES (or equivalent) I can accept that. Because Fortran and C had it from the beginning I felt it was important to provide it. At the same time I also found SET-PRECISION to be useful. I can't imagine FE. being used with anything but SET-PRECISION. So for me, an fp package needs to offer both schemes.
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar
Display Engineering Notation with SI Prefix dxf <dxforth@gmail.com> - 2024-08-29 01:32 +1000
Re: Display Engineering Notation with SI Prefix dxf <dxforth@gmail.com> - 2024-08-29 20:02 +1000
Re: Display Engineering Notation with SI Prefix mhx@iae.nl (mhx) - 2024-08-29 10:39 +0000
Re: Display Engineering Notation with SI Prefix dxf <dxforth@gmail.com> - 2024-08-29 22:39 +1000
Re: Display Engineering Notation with SI Prefix mhx@iae.nl (mhx) - 2024-08-29 14:23 +0000
Re: Display Engineering Notation with SI Prefix dxf <dxforth@gmail.com> - 2024-08-30 12:13 +1000
Re: Display Engineering Notation with SI Prefix mhx@iae.nl (mhx) - 2024-08-30 06:30 +0000
Re: Display Engineering Notation with SI Prefix dxf <dxforth@gmail.com> - 2024-08-30 18:03 +1000
Re: Display Engineering Notation with SI Prefix mhx@iae.nl (mhx) - 2024-08-30 08:26 +0000
Re: Display Engineering Notation with SI Prefix dxf <dxforth@gmail.com> - 2024-08-30 19:24 +1000
Re: Display Engineering Notation with SI Prefix dxf <dxforth@gmail.com> - 2024-08-31 11:11 +1000
csiph-web