"Number" (interpreter type)

Number in a standard format.

DetailsDetails

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

Allowed FormsAllowed Forms

  • 1234integers
    -1234negative integers
    12.34real numbers
    12.45e45numbers in scientific notation
    1.2E-5numbers in scientific notation
    12,456integers with separators
    12,345.67real numbers with separators

Restriction SpecificationsRestriction Specifications

  • Restricted["Number",{{choices1, }}]one among choices
    Restricted["Number",max]a number below max
    Restricted["Number",{min, max}]a number between min and max
    Restricted["Number",{min, max, s}]a number between min and max, with step s

OptionsOptions

InterpretationInterpretation

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Interpret integers:

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

Interpret numbers in scientific notation:

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

Interpret real numbers, with a bound:

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

Use a different number point:

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

Restrict to odd numbers below 100:

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