DigitQ
Usage
• DigitQ[string]用来判断该字符串中的所有字符是否是0到9的数字,若是则返回 True,否则返回False.
Notes
Further Examples
Since each of the characters in this string are digits, a value of True is returned
In[1]:=
|
Out[1]=
|
This string contains a character that is not a digit.
In[2]:=
|
Out[2]=
|
|