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:

Wolfram Research (1991), DigitQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DigitQ.html.

Text

Wolfram Research (1991), DigitQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DigitQ.html.

CMS

Wolfram Language. 1991. "DigitQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DigitQ.html.

APA

Wolfram Language. (1991). DigitQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DigitQ.html

BibTeX

@misc{reference.wolfram_2024_digitq, author="Wolfram Research", title="{DigitQ}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/DigitQ.html}", note=[Accessed: 25-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_digitq, organization={Wolfram Research}, title={DigitQ}, year={1991}, url={https://reference.wolfram.com/language/ref/DigitQ.html}, note=[Accessed: 25-November-2024 ]}