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

open allclose all

Basic Examples  (1)

Test whether a character is a digit:

Scope  (1)

Test whether all characters in a string are digits:

Properties & Relations  (1)

Only ordinary digit characters are treated as digits:

Introduced in 1991
 (2.0)