Function two_sum

Source
pub fn two_sum(a: f64, b: f64) -> (f64, f64)
Expand description

Sum of a and b, plus the exact rounding error.

Knuth’s two-sum: a + b == sum + error exactly, for any finite inputs. Unlike the faster fast_two_sum, this needs no ordering precondition.