ZTree.com  | ZEN  | About...  

 Index   Back

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

By: Nick Williams     West Sussex, England  
Date: Aug 27,2017 at 23: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
Nick

1,011 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 49 users online (0 registered, 49 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 12:14 pm UTC  |  Hits:62,365,991  (18,388 Today )
RSS Feed