IntegerQ
✖
IntegerQ
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
IntegerQ tests whether an expression is explicitly an integer:

https://wolfram.com/xid/0wgls4z-6xlso


https://wolfram.com/xid/0wgls4z-c6ay2v

Applications (2)Sample problems that can be solved with this function
Test whether an array consists of all integers:

https://wolfram.com/xid/0wgls4z-e2n24


https://wolfram.com/xid/0wgls4z-57cin

Make a test for Gaussian integers:

https://wolfram.com/xid/0wgls4z-c4775q

https://wolfram.com/xid/0wgls4z-bq1v0i

Properties & Relations (2)Properties of the function, and connections to other functions
Integers have head Integer:

https://wolfram.com/xid/0wgls4z-cn335t

https://wolfram.com/xid/0wgls4z-ddw65m

An expression may have head Integer, but IntegerQ gives False:

https://wolfram.com/xid/0wgls4z-damflh


https://wolfram.com/xid/0wgls4z-ihtg4z

Possible Issues (1)Common pitfalls and unexpected behavior
Expressions that do not evaluate to integers explicitly will still give False:

https://wolfram.com/xid/0wgls4z-fqsmkl

https://wolfram.com/xid/0wgls4z-d6xt37

It is necessary to use symbolic simplification first:

https://wolfram.com/xid/0wgls4z-3i2q6

Wolfram Research (1988), IntegerQ, Wolfram Language function, https://reference.wolfram.com/language/ref/IntegerQ.html (updated 1999).
Text
Wolfram Research (1988), IntegerQ, Wolfram Language function, https://reference.wolfram.com/language/ref/IntegerQ.html (updated 1999).
Wolfram Research (1988), IntegerQ, Wolfram Language function, https://reference.wolfram.com/language/ref/IntegerQ.html (updated 1999).
CMS
Wolfram Language. 1988. "IntegerQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1999. https://reference.wolfram.com/language/ref/IntegerQ.html.
Wolfram Language. 1988. "IntegerQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1999. https://reference.wolfram.com/language/ref/IntegerQ.html.
APA
Wolfram Language. (1988). IntegerQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntegerQ.html
Wolfram Language. (1988). IntegerQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntegerQ.html
BibTeX
@misc{reference.wolfram_2025_integerq, author="Wolfram Research", title="{IntegerQ}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/IntegerQ.html}", note=[Accessed: 09-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_integerq, organization={Wolfram Research}, title={IntegerQ}, year={1999}, url={https://reference.wolfram.com/language/ref/IntegerQ.html}, note=[Accessed: 09-July-2025
]}