Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Numerical Evaluation & Precision > Representation of Numbers >
Mathematica > Core Language > Expressions > Expression Structure > Atomic Elements of Expressions > Representation of Numbers >

ExactNumberQ

ExactNumberQ[expr]
returns True if expr is an exact real or complex number, and returns False otherwise.
ExactNumberQ tests whether an object is explicitly an exact number:
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:
Numbers are considered either exact or approximate (inexact):
Exact numbers have Precision infty:
Exact numbers have Head Integer, Rational, or Complex:
A function equivalent to ExactNumberQ:
New in 4
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team