ZTree.com  | ZEN  | About...  

 Index   Back

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

By: Nick Williams     West Sussex, England (forum time +5 hrs)  
Date: Aug 27,2017 at 19:16
In Response to: [Q] how do i test if a string is a number? (Ryan)

Hi Ryan,

I've been investigating this question for you. There are lots of examples on the Internet, but to be honest, I found them all to be either too fragile or incomplete/inaccurate.

I have therefore set about writing my own batch "function", "isAnInteger", which I hope will prove to be a bit more robust and accurate.

You are very welcome to have this -- are you interested ?

I hope you will say yes, because the coding style will also give you an insight in how to write batch "functions" -- considered by many as the holy grail of batch programming. You will also see other techniques in use, that will help you, going forward.

If you've already got a solution and don't need another, then no problem -- I will add mine to my every-growing library of batch functions.

Kind regards

Thread locked

Messages in this Thread

95,077 Postings in 11,987 Threads, 350 registered users, 33 users online (0 registered, 33 guests)
Index | Admin contact |   Forum Time: Aug 14, 2020 - 6:24 pm EDT  |  Hits:33,120,716  (20,478 Today )
RSS Feed