pub fn round_down_to(sector: i64, grain_size: i64) -> i64
Rounds a number down to the closest number that is a multiple of the grain size.