Mathematica 9 is now available
 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]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.