home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

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

   Message 67,718 of 68,980   
   Tom Del Rosso to All   
   leading zero   
   06 Mar 21 22:19:37   
   
   From: fizzbintuesday@that-google-mail-domain.com   
      
   This is curious.   
      
   set x=09   
   set /a y=x   
      
   results in the answer zero, but it should give the invalid number error.   
      
   set /a y=%x%   
   does give the expected error.   
      
   BTW I like to use   
   set /a y=(1%x%-100) ...*/-+...   
   as a compact way to remove the zero.   
      
   --   
    Defund the Thought Police   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca