Sterbenz lemma
In floating-point arithmetic, the Sterbenz lemma or Sterbenz's lemma is a theorem giving conditions under which floating-point differences are computed exactly. It is named after Pat H. Sterbenz, who published a variant of it in 1974.
Sterbenz lemma—In a floating-point number system with subnormal numbers, if and are floating-point numbers such that
then is also a floating-point number. Thus, a correctly rounded floating-point subtraction
is computed exactly.
The Sterbenz lemma applies to IEEE 754, the most widely used floating-point number system in computers.