Skip to main content

round_half_to_even

Function round_half_to_even 

Source
fn round_half_to_even(x: f64) -> f64
Expand description

IEEE 754 round-half-to-even: if the fractional part is exactly 0.5, round to the nearest even integer. Otherwise round normally.