Number

Number
represents an exact integer or an approximate real number in Read.

DetailsDetails

  • An integer is returned if no explicit decimal point is present.
  • Approximate real numbers can be given in C or Fortran forms, such as or .

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Open a stream:

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

Read numbers from the stream object:

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

Close the stream:

In[5]:=
Click for copyable input
Out[5]=
New in 1
New to Mathematica? Find your learning path »
Have a question? Ask support »