The ceiling function is a mathematical function that associates with any real number x the smallest integer n such that nx, and is often noted as x or ceil(x). In other words, the ceiling of x is the smallest integer greater than or equal to x.

LaTeX Code

The ceil function can be easily implemented in LaTeX using the following command:

$$\lceil x \rceil$$
x

Ceil Function

The ceil function is formally defined as:

$$\lceil x \rceil = \operatorname{min}\{n \in \mathbb{Z} : n \geq x\}$$
x=min{nZ:nx}

Example of Use

Suppose we want to round the number x=4.7 up to the nearest integer. We can use the x function, which returns the smallest integer greater than or equal to x. In this case, we have:

$$\lceil 4.7 \rceil = 5$$
4.7=5