/* Divide and round to the closest integer */
Divide and round to the closest integer
Divide and round to the closest integer
fn div_round_closest(n: u64, d: u32) -> u64 {
    let _d: u64 = d as u64;
    (n + (_d / 2)) / _d
}
fn div_round_closest ( n : u64 , d : u32 ) -> u64 { let _d : u64 = d as u64 ; ( n + ( _d / 2 ) ) / _d }
Divide and round to the closest integer
Divide and round to the closest integer
n
u64
d
u32