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

94,638 Postings in 11,936 Threads, 348 registered users, 9 users online (0 registered, 9 guests)
Index | Admin contact |   Forum Time: Dec 7, 2019 - 1:52 pm EST  |  Hits:29,377,000  (2,177 Today )
RSS Feed