Sujet : Re: "The Best Programming Language for the End of the World"
De : mhx (at) *nospam* iae.nl (mhx)
Groupes : comp.lang.forthDate : 13. Apr 2025, 22:00:37
Autres entêtes
Organisation : novaBBS
Message-ID : <b815206187019edb493b613d8a98c59b@www.novabbs.com>
References : 1 2 3 4 5 6 7 8
User-Agent : Rocksolid Light
On Sun, 13 Apr 2025 17:24:03 +0000, Hans Bezemer wrote:
On 13-04-2025 04:50, Waldek Hebisch wrote:
mhx <mhx@iae.nl> wrote:
So 1.00 means a precision required is 5 micron.
>
Where are the microns coming from?
>
What Albert wrote implies that precision is 0.005 (half of 0.01).
But (what he did not wrote) default unit for mechanical work is
milimeter. 0.005 of milimeter is 5 micron.
>
>
Agreed, the terms mu and micron are still quite popular among boomers,
but haven't actually been part of the SI since 1967. It's micrometre,
folks. Glow up!
Irrelevant. Albert pointed out that the number "1.00" means nothing
without a context that allows to decide how the number should be
printed or evaluated. Unfortunately, he chose the mechanical domain
in his example without giving the conventions valid in that environment.
So I couldn't calculate output = "5e-6" from input "1.00."
The context that ANS assumes might be the use of IEEE double
precision. That gives at least some numbers to relate 'precision'
to when Forth (with a properly implemented FP package) prints a
given number. It tells me nothing about the precision of, e.g.,
a sin(x)/x calculation that my program does.
-marcel