Re: Display Engineering Notation with SI Prefix

Liste des GroupesRevenir à cl forth 
Sujet : Re: Display Engineering Notation with SI Prefix
De : mhx (at) *nospam* iae.nl (mhx)
Groupes : comp.lang.forth
Date : 30. Aug 2024, 07:30:20
Autres entêtes
Organisation : novaBBS
Message-ID : <77ea156ee1b693638011cfe1b9db7acd@www.novabbs.com>
References : 1 2 3 4 5 6
User-Agent : Rocksolid Light
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

Date Sujet#  Auteur
28 Aug 24 * Display Engineering Notation with SI Prefix11dxf
29 Aug 24 `* Re: Display Engineering Notation with SI Prefix10dxf
29 Aug 24  `* Re: Display Engineering Notation with SI Prefix9mhx
29 Aug 24   `* Re: Display Engineering Notation with SI Prefix8dxf
29 Aug 24    `* Re: Display Engineering Notation with SI Prefix7mhx
30 Aug 24     `* Re: Display Engineering Notation with SI Prefix6dxf
30 Aug 24      `* Re: Display Engineering Notation with SI Prefix5mhx
30 Aug 24       `* Re: Display Engineering Notation with SI Prefix4dxf
30 Aug 24        `* Re: Display Engineering Notation with SI Prefix3mhx
30 Aug 24         `* Re: Display Engineering Notation with SI Prefix2dxf
31 Aug 24          `- Re: Display Engineering Notation with SI Prefix1dxf

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal