add_exactly

Function add_exactly 

Source
fn add_exactly(sum: &mut f64, error: &mut f64, x: f64)
Expand description

Adds x to sum and the rounding error of that addition, which Knuth’s two-sum finds exactly, to error.