Avoiding a conversion over to floating point is necessary.
Avoiding a conversion over to floating point is necessary.
rust stable v1.61.0 branch: ceil(a/b) is (a + b - 1) / b if you know that that addition won't overflow.
Nightly: https://doc.rust-lang.org/std/primitive.i32.html#method.div_ceil