$MachineEpsilon

$MachineEpsilon
gives the difference between and the next-nearest number representable as a machine-precision number.

DetailsDetails

  • $MachineEpsilon is typically , where n is the number of binary bits used in the internal representation of machineprecision floatingpoint numbers.
  • $MachineEpsilon measures the granularity of machineprecision numbers.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

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

The result of adding 1 to $MachineEpsilon is distinct from 1:

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

Adding a fraction of $MachineEpsilon effectively results in rounding:

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=
Introduced in 1991
(2.0)
Translate this page: