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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?