function
ceildiv
ceildiv[T: CeilDivable](numerator: T, denominator: T) -> $0
Return the rounded-up result of dividing x by y.
Parameters:
- T (
CeilDivable
): A type that support floor division.
Args:
- numerator (
T
): The numerator. - denominator (
T
): The denominator.
Returns:
The ceiling of dividing x by y.
ceildiv[T: CeilDivableRaising](numerator: T, denominator: T) -> $0
Return the rounded-up result of dividing x by y, potentially raising.
Parameters:
- T (
CeilDivableRaising
): A type that support floor division.
Args:
- numerator (
T
): The numerator. - denominator (
T
): The denominator.
Returns:
The ceiling of dividing x by y.