DOCUMENTATION CENTER SEARCH
Mathematica
>
Character Operations
>
Built-in
Mathematica
Symbol
Characters in Strings
Tutorials »
|
LetterQ
Number
StringExpression
See Also »
|
Character Operations
Testing Expressions
More About »
DigitQ
DigitQ
[
string
]
yields
True
if all the characters in the string are digits in the range
0
through
9
, and yields
False
otherwise.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Test whether a character is a digit:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Scope
(1)
Properties & Relations
(1)
SEE ALSO
LetterQ
Number
StringExpression
TUTORIALS
Characters in Strings
MORE ABOUT
Character Operations
Testing Expressions
New in 2
© 2008 Wolfram Research, Inc.