im trying to check an integer has no more than 2 digits. ie. "99"would be valid but "100" would be illegal. ow do i do this?
thanks
This could be one Method of doing it.
1. First Validate the Number. If validation is success, then convert it to string and find the length.
If the length of the string is more than 2 then u can say invalid.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.