Liste des Groupes | Revenir à cl forth |
On 1/01/2025 2:42 pm, Bernd Linsel wrote:On 01.01.25 01:45, dxf wrote:
>>>
To support DPL I have >NUMBER increment it for every digit successfully
converted. While most systems today have DPL (?) usage is probably too
diverse to standardize.
>
It's documented in F83 Annex B (Uncontrolled Reference Words):
Those being mostly words from Kitt Peak Forth.
>
DPL -- addr U "d-p-l"
A variable containing the number of places after the
fractional point for input conversion.
>
It's usually implemented that DPL is reset to -1 when entering >NUMBER,
each successful digit conversion increments it only if it is >= 0, and the first decimal separator encountered changes it from -1 to 0.
Yes, in Fig-Forth. In Swiftforth DPL is just a flag. Now you've got me
wondering why Fig does the 'test before increment' and I left it out ...
Les messages affichés proviennent d'usenet.