For AI agents: the complete documentation index is available at /hclapi/llms.txt, the full documentation bundle is available at /hclapi/llms-full.txt, and this page is available as Markdown at /hclapi/docs/manifest/functions/math/ceil.md.

ceil

Rounds a floating-point number up to the nearest integer.

Signature

ceil(num: number) -> int

Parameters

ParameterTypeRequiredDescription
numnumberyesInput number

Return value

Returns the documented result for the function signature.

Example

respond { status = 200, body = { pages = ceil(ctx.request.query.items / 25) } }