Function floor_div

Source
pub fn floor_div<T>(numerator: T, denom: T) -> T
where T: Copy + Div<Output = T> + Rem<Output = T> + Sub<Output = T>,
Expand description

divide two values and round down to the nearest integer.