home bbs files messages ]

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,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 116,985 of 117,927   
   dxf to Bernd Linsel   
   Re: FP number syntax   
   01 Jan 25 16:17:42   
   
   From: dxforth@gmail.com   
      
   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 ...   
      
   --- 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