Function std::uint::div_round

pub fn div_round(x: uint, y: uint) -> uint

Divide two numbers, return the result, rounded to the closest integer.

Arguments

Return value

The integer q closest to x/y.