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

374 views      
Thread locked
 

Messages in this Thread

 
94,951 Postings in 11,969 Threads, 349 registered users, 29 users online (1 registered, 28 guests)
Index | Admin contact |   Forum Time: May 24, 2020 - 5:55 pm EDT  |  Hits:31,221,880  (4,560 Today )
RSS Feed