ExactNumberQ[expr]
returns True if expr is an exact real or complex number, and returns False otherwise.


ExactNumberQ
ExactNumberQ[expr]
returns True if expr is an exact real or complex number, and returns False otherwise.
Examples
open all close allBasic Examples (1)
ExactNumberQ tests whether an object is explicitly an exact number:
Scope (2)
Both real and imaginary parts of a complex number must be exact:
ExactNumberQ is false for symbolic objects that represent numbers:
You can test these with NumericQ:
See Also
Related Guides
History
Introduced in 1999 (4.0)
Text
Wolfram Research (1999), ExactNumberQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ExactNumberQ.html.
CMS
Wolfram Language. 1999. "ExactNumberQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ExactNumberQ.html.
APA
Wolfram Language. (1999). ExactNumberQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExactNumberQ.html
BibTeX
@misc{reference.wolfram_2025_exactnumberq, author="Wolfram Research", title="{ExactNumberQ}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/ExactNumberQ.html}", note=[Accessed: 06-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_exactnumberq, organization={Wolfram Research}, title={ExactNumberQ}, year={1999}, url={https://reference.wolfram.com/language/ref/ExactNumberQ.html}, note=[Accessed: 06-August-2025]}