$MachineEpsilon

$MachineEpsilon

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

Details

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

Examples

open allclose all

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

Scope  (2)

Applications  (2)

Properties & Relations  (3)

Neat Examples  (1)

See Also

$MachinePrecision  $MinMachineNumber  $MaxMachineNumber

Tutorials

Introduced in 1991
(2.0)