Number System

Machine Epsilon

Two close measurement marks show a tiny gap.

Machine Epsilon definition

Machine epsilon commonly means the gap between 1 and the next larger representable floating-point number.

In Spanish
épsilon de máquina
Topic
Number bases and digital representations

Machine Epsilon in a picture

Machine Epsilon diagramThe gap from 1 to its next floating-point neighbor is much larger than the smallest positive representable number.Start at exactly 1Find the next representable value above itSubtract 1 from that valueThe difference is the spacing at 1Check the terminologyHalf the gap is unit roundoff
The gap from 1 to its next floating-point neighbor is much larger than the smallest positive representable number.

How it works

For a binary format with p significand bits, that gap is 2^(1 − p). In binary64, p = 53 and the gap is 2⁻⁵². Some numerical analysis texts use machine epsilon for unit roundoff, half this gap for round-to-nearest. State which convention applies.

Worked examples

Find the spacing at 1 for p = 4 binary significand bits.

2^(1 − 4) = 1/8.

What is unit roundoff in that example under nearest rounding?

Half the gap, or 1/16.

Does machine epsilon give the spacing at every floating-point value?

No. Floating-point spacing usually changes with the exponent.

Common mistake

Machine epsilon describes local precision near 1. The smallest positive floating-point number describes range near zero.

Quick check

For p = 5 binary significand bits, what is the spacing just above 1?

Does more precision make this gap smaller?

Show answer

Yes.

Which component’s bit count determines the gap at 1?

Show answer

The significand’s precision.

Sources

Flashcard

Machine Epsilon

Reveal the definition

Machine epsilon commonly means the gap between 1 and the next larger representable floating-point number.

Effortless Math. “Machine Epsilon.” Math Dictionary.