IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo function

ceil_div

def ceil_div(x: Int32, y: Int32) -> Int32

Computes the ceiling of x divided by y for signed 32-bit integers.

Args:

  • x (Int32): The numerator of the division.
  • y (Int32): The denominator of the division; must be nonzero.

Returns:

Int32

Was this page helpful?