The ceiling function rounds up to the nearest integer. For example, and (up means toward positive infinity).
You use ceiling when you need to know how many groups are required to hold all items. If you have items and each group holds , you need groups.
A trick: when and are positive integers. This avoids floating-point division.