hi, i need some advice on checking number string.
eg input is "1234" and i need to verify if it is numeric.
currently i go through each character within to see if it is a digit; if all are digits then it will return true. but this looks very long-winded.
can anyone advise on a much neater way?
thanks
eg input is "1234" and i need to verify if it is numeric.
currently i go through each character within to see if it is a digit; if all are digits then it will return true. but this looks very long-winded.
can anyone advise on a much neater way?
thanks