"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
    1.2345`2numbers with a given Precision
    1.2345``4numbers with a given Accuracy
    12,456integers with separators
    12,345.67real numbers with separators

Restriction SpecificationsRestriction Specifications

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]=

Set the precision:

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

Otherwise, $MachinePrecision is implied:

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

When the number contains a Precision or Accuracy, and a precision restriction is also specified, the lower of the two will be applied:

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