Liste des Groupes | Revenir à cl forth |
On 10-04-2025 07:15, dxf wrote:On 9/04/2025 11:14 pm, sjack wrote:Hans Bezemer <the.beez.speaks@gmail.com> wrote:>that's helpful. But do you mean "significant digits" the way I mean>
"significant digits"? I don't think so.. The beauty of "most significant
If you take a measurement and get a four digit number where the last
digit was result of rounding, then you have three significant digits.
>
But "words lie"; just their nature.
But when Forth-94 instructs you to 'round the number to n significant digits'
what is unclear? Not the numerical result.
>
What's ambiguous in Forth-94 is the returned representation i.e. should
REPRESENT return '0's representing the insignificant digits; should F.
trim the redundant trailing '0's.
Just my gut feeling: REPRESENT - no. This is a word used to construct number representations. It should be as literal as possible, because the programmer will most probably interfere in the representation. If he wants those zeros he should get them rather than add them IMHO.
F. - yes. This is my most vanilla floating point printer. It's the "just gimme my number" word - no frills.
Les messages affichés proviennent d'usenet.