Integer division that rounds up
From wikiluntti
Introduction
Usual integer division rounds down: for . To round up (if overflow is not an issue), you can use following algorithm with the usual roundig down division: Failed to parse (syntax error): {\displaystyle q = \frac{x+y-1}{y} = \left \lceiling \frac xy \right \rceiling. }