Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.forth    |    Forth programmers eat a lot of Bratwurst    |    117,951 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 116,986 of 117,951    |
|    dxf to dxf    |
|    Re: FP number syntax    |
|    01 Jan 25 18:58:44    |
      From: dxforth@gmail.com              On 1/01/2025 4:17 pm, dxf wrote:       > 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 ...              Ok, the reason I left out the pre-increment test was likely generality.       In DX-Forth the DPL increment feature is ignored. Since my doubles are       strictly ANS, DPL can only be -1 or 0.              --- SoupGate-DOS v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca