Checks if a string contains only digit (0-9) characters.
StringIsDigit ( "string" )
Parameters
string | The string to check |
Return Value
Success: | Returns 1. |
Failure: | Returns 0 if string contains non-digits. |
Remarks
See examples.
Related
StringIsAlNum, StringIsAlpha, StringIsASCII, StringIsLower, StringIsSpace, StringIsUpper, StringIsXDigit
Example
StringIsDigit("12333") ;returns 1
StringIsDigit("1.5") ;returns 0 due to decimal point
StringIsDigit("1 2 3") ;returns 0 due to whitespace
StringIsDigit("") ;returns 0