Skip to content

Math Ceil

The math::ceil function rounds a number up to the nearest integer.

Syntax

math::ceil(<number>)

Parameters

  • number: The input number to be rounded up.

Returns

  • Number: The smallest integer greater than or equal to the input number.

Example

Try it out below!
math::ceil(3.14)

This function is useful for rounding calculations where the next highest integer is needed.