x: isize; y: isize
I want to compute ceiling of (x/y).
Is the best way to do this via:
((x as f32) / (y as f32)).ceil() as isize
In a language like C, I’d do
int ans = ceil(1.0*x/y) without much thought, but here with all the
as casting going no, I’m wondering if there is a better way.