Function std::uint::div_floor

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

Divide two numbers, return the result, rounded down.

Note: This is the same function as div.

Arguments

Return value

The smallest integer q such that x/y <= q. This is either x/y or x/y + 1.