is the head used for integers.
Integer
is the head used for integers.
Examples
open all close allBasic Examples (1)
Scope (5)
3083018301830938103891087250921849149148919174498327498729472984722^^10110111011110111110111111011111110111111110111111111Enter an integer in hexadecimal:
16^^fa0Format an integer using base 2:
BaseForm[6455773865180671, 2]_Integer can be used to stand for an integer in a pattern:
MatchQ[1234, _Integer]A rule that replaces integers with their reciprocals:
f[3, g[-4]] /. x_Integer -> 1 / xApplications (2)
Define a function that only works for integers:
divisibleby3[x_Integer] := (Mod[x, 3] == 0)Map[divisibleby3, {123, -40, 3.14}]Define a function that has a special case for integers:
fd[x_, k_, d_Integer] = D[x ^ k, x]fd[x_, k_, d_] := (Gamma[k + 1] / Gamma[k - d + 1])x ^ (k - d)Make a surface plot of the fractional derivative of
at
as a function of
and order:
Plot3D[fd[1, k, d], {k, 0, 2}, {d, 0, 5}, PlotRange -> All]Properties & Relations (3)
NumberQ[1234]Integers are atomic objects with no subexpressions:
AtomQ[1234]Use Integers to represent assumptions and indicate domain conditions:
Reduce[x ^ 1000 - 2x ^ 777 + 1 == 0, x, Integers]Tech Notes
Related Guides
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), Integer, Wolfram Language function, https://reference.wolfram.com/language/ref/Integer.html.
CMS
Wolfram Language. 1988. "Integer." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Integer.html.
APA
Wolfram Language. (1988). Integer. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Integer.html
BibTeX
@misc{reference.wolfram_2026_integer, author="Wolfram Research", title="{Integer}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Integer.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_integer, organization={Wolfram Research}, title={Integer}, year={1988}, url={https://reference.wolfram.com/language/ref/Integer.html}, note=[Accessed: 13-June-2026]}