"Integer" (interpreter type)

Integer number in a standard format.

DetailsDetails

  • "Integer" can be used in Interpreter and related constructs, including deployed smart form fields.
  • Use of "Integer" does not require connectivity to the Wolfram Cloud.

Allowed FormsAllowed Forms

  • 1234positive integers
    -1234negative integers
    12,456integers with separators

Restriction SpecificationsRestriction Specifications

OptionsOptions

  • The following options can be used:
  • DigitBlockInfinitynumber of digits between breaks
    NumberSeparator{","," "}string to insert at breaks between blocks
    NumberSigns{"-",""}strings to use for signs of negative and positive numbers

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Interpret integer numbers:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Restrict in a range:

In[1]:=
Click for copyable input
Out[1]=

Restrict to the first 10 Fibonacci numbers:

In[1]:=
Click for copyable input
Out[1]=

Use a custom number separator:

In[1]:=
Click for copyable input
Out[1]=

Use a custom pair of number signs:

In[1]:=
Click for copyable input
Out[1]=