This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Programming / Expression Structure  /
Integer

  • Integer is the head used for integers.
  • _Integer can be used to stand for an integer in a pattern.
  • Integers can be of any length.
  • You can enter an integer in base b using b ^^ digits. The base must be less than 36. The letters are used in sequence to stand for digits 10 through 35.
  • See the Mathematica book: Section 3.1.1.
  • See also: IntegerDigits, BaseForm.

    Further Examples

    The Head of the number is an integer; is not an integer.

    In[1]:=

    Out[1]=

    This generates a random integer in the range from 0 to 10.

    In[2]:=

    Out[2]=