Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #132067

Re: Display Engineering Notation with SI Prefix

From mhx@iae.nl (mhx)
Newsgroups comp.lang.forth
Subject Re: Display Engineering Notation with SI Prefix
Date 2024-08-30 06:30 +0000
Organization novaBBS
Message-ID <77ea156ee1b693638011cfe1b9db7acd@www.novabbs.com> (permalink)
References (1 earlier) <66d04731$1@news.ausics.net> <b551b3b6939980752fc024b73e3e722a@www.novabbs.com> <66d06bf8@news.ausics.net> <9abad5353f8d82a5af911c82bcd2d404@www.novabbs.com> <66d12ad7$1@news.ausics.net>

Show all headers | View raw


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 .

-marcel

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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