For the complete documentation index, see llms.txt. This page is also available as Markdown.

math.ceil()

math.ceil(n) returns n rounded up.

Returns

  • if n is a number, returns the smallest integer larger than or equal to n.

  • if n is not a number, returns null.

Examples

# evaluates to 5    
math.ceil(4.1)
# evaluates to 0
math.ceil(-0.9)

Last updated

Was this helpful?