Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 94:24:38 |
Calls: | 290 |
Calls today: | 1 |
Files: | 904 |
Messages: | 76,378 |
On 29/08/2024 1:32 am, dxf wrote:[..]
The real (FE.) has no such issues and works as expected ...
VFX Forth 64 for Windows x64
© MicroProcessor Engineering Ltd, 1998-2023
Version: 5.43 [build 4241]
Build date: 22 December 2023
2 set-precision ok
1.234e 1e2 f* -1 (fe.) type 120.E0 ok
So iForth PRECISION equates to 'decimal places'.
Didn't F83 have DIGITS ?
Neither Laxen/Perry F83 nor Forth-83 had floating point. You may be
thinking of PLACES from 'The Forth Vendors Group Standard Floating
Point Extension' (?)
Has any language other that Forth opted for 'significant digits' over
(or in addition to) 'decimal places'? The former seems particularly
suited to engineering.
[..]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.
At the same time I also found
SET-PRECISION to be useful.