8.2.11.2.49. isdecimalΒΆ

Token.isdecimal()

Return True if the string is a decimal string, False otherwise.

A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.