ExactNumberQ
ExactNumberQ[expr]
returns True if expr is an exact real or complex number, and returns False otherwise.
Examples
open allclose 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:
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