fn add_exactly(sum: &mut f64, error: &mut f64, x: f64)
Adds x to sum and the rounding error of that addition, which Knuth’s two-sum finds exactly, to error.
x
sum
error