With the function ceiling you can also round numbers to an integer like the function round. The difference between these two functions is that cieling rounds the number up independently how high or low the first decimal place is.

For example:

ceiling(4.7) = 5

ceiling(13.5) = 14

ceiling(8.3) = 9

ceiling(14.0) = 14

Where can you use this function?

If we want to know the future age of an object (in my case Pocket Code), we can use the function to calculate the exact age of Pocket Code. Then we can round up this number to get the future age of the object.

Code:

ceiling_english.png