From: admin@nospicedham.127.0.0.1   
      
   On Sun, 16 May 2021 20:11:15 +0000   
   Robert Prins wrote:   
      
   > On 2021-05-16 13:09, Terje Mathisen wrote:   
   > > Robert Prins wrote:   
   > >> On 2021-05-16 08:25, R.Wieser wrote:   
   > >>>> Is it possible to fit the conversion of a 16 bit signed integer to   
   > >>>> left-aligned   
   > >>>> ASCII without leading zeroes in just 65 bytes?   
   > >>>   
   > >>> As no specifications have been posted, I do have some code that outputs a   
   > >>> signed number using just 25 bytes.   
   > >>>   
   > >>> The trick ? Filling the buffer backwards (putting the sign at the   
   end).   
   > >>   
   > >> The code is replacement code for the itoa routine in the Borland TP3   
   compiler,    
   > >> so it has to give the same result.   
   > >    
   > > Why didn't you state so?   
   >    
   > I should have done earlier, rather than in that follow-up, apologies.   
   >    
   > > The key here is that this function returns a TP string, right?   
   >    
   > No, see the code of the current routine I also posted.   
      
   Not that I've seen on this NG.   
      
   > For what it's worth, -32768 is problematic for all routines posted, it   
   doesn't    
   > change sign when negated! TP3 also doesn't accept it as valid integer,   
   unless    
   > coded as $8000.   
   >    
   > Robert   
   > --    
   > Robert AH Prins   
   > robert(a)prino(d)org   
   > The hitchhiking grandfather - https://prino.neocities.org/indez.html   
   > Some REXX code for use on z/OS - https://prino.neocities.org/z   
   S/zOS-Tools.html   
   >    
      
      
   --    
   Bah, and indeed Humbug.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|