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,723 of 68,980   
   Tom Del Rosso to All   
   Re: leading zero   
   07 Mar 21 09:28:16   
   
   From: fizzbintuesday@that-google-mail-domain.com   
      
   JJ wrote:   
   >   
   > Numbers with leading zero(es) are treated as Octal numbers. So, "8"   
   > and "9" number are invalid Octal numbers.   
   >   
   > When SET /A is used with variables only (i.e. no constant), it doesn't   
   > display any error message when it encounters an error. Instead, it   
   > simply set the ERRORLEVEL, then sets the result of the calculation to   
   > zero. i.e. a silent error.   
   >   
   > e.g. this causes an error.   
   >   
   >  set/a 08   
      
   [snip for grc quote rule]   
      
   But this doesn't explain (it seems to me) why the variable without   
   percents has a different result. SET/A is supposed to behave the same   
   with or without the percents.   
      
      
   --   
    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