ZTree.com  | ZEN  | About...  

 Index   Back

[Q] how do i test if a string is a number?   [Q]

By: Ryan       
Date: Aug 23,2017 at 06:04

how do i test if a string is a number?


SET /A NN=123 is not a problem

but

Set /A NN=abc returns %NN% as 0

then we can not tell the difference from Set /A NN=0 which also returns %NN% as 0

312 views      
Thread locked
 

Messages in this Thread

 
94,580 Postings in 11,930 Threads, 348 registered users, 18 users online (0 registered, 18 guests)
Index | Admin contact |   Forum Time: Nov 17, 2019 - 7:12 am EST  |  Hits:29,148,459  (8,420 Today )
RSS Feed