Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > String Manipulation > Character Operations >

DigitQ

DigitQ[string]
yields True if all the characters in the string are digits in the range 0 through 9, and yields False otherwise.
Test whether a character is a digit:
Test whether all characters in a string are digits:
Only ordinary digit characters are treated as digits:
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team