DOCUMENTATION CENTER SEARCH
Mathematica
>
Testing Expressions
>
Built-in
Mathematica
Symbol
Putting Constraints on Patterns
Types of Numbers
Tutorials »
|
EvenQ
OddQ
NumberQ
TrueQ
Element
Integer
Integers
See Also »
|
Conditionals
Numerical Evaluation & Precision
Numerical Functions
Representation of Numbers
Testing Expressions
More About »
IntegerQ
IntegerQ
[
expr
]
gives
True
if
expr
is an integer, and
False
otherwise.
MORE INFORMATION
IntegerQ
[
expr
]
returns
False
unless
expr
is manifestly an integer (i.e., has head
Integer
).
Simplify
[
expr
Integers
]
can be used to try to determine whether an expression is mathematically equal to an integer.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
IntegerQ
tests whether an expression is explicitly an integer:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Applications
(2)
Properties & Relations
(1)
Possible Issues
(1)
SEE ALSO
EvenQ
OddQ
NumberQ
TrueQ
Element
Integer
Integers
TUTORIALS
Putting Constraints on Patterns
Types of Numbers
MORE ABOUT
Conditionals
Numerical Evaluation & Precision
Numerical Functions
Representation of Numbers
Testing Expressions
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 1
© 2008 Wolfram Research, Inc.