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,078 of 68,980   
   Dr J R Stockton to All   
   Re: How to thoroughly check if a variabl   
   09 Nov 17 02:00:15   
   
   From: J.R.Stockton@physics.org   
      
   On Wednesday, October 25, 2017 at 2:36:53 PM UTC+1, JJ wrote:   
      
   >How to thoroughly check if a variable contains a valid   
   >integer number?   
   > e.g. if I try to check it like this:   
      
   Firstly, define what *you* mean  by "integer".   
      
   Is 1e3 an integer, value decimal 1000?   
   Is 077 an integer, value decimal 63?   
   Is 0xF an integer, value decimal 15?   
   Is 1.0 an integer, value 1?   
   Are signs + and/or - allowed?   
      
   --   
     (c) John Stockton, near London, UK.  Using Google, no spell-check. |   
    Mail: J.R.""""""""@physics.org - or as Reply-To                     |   
      
   --- 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