Rounding off to the next whole number

Hello,
I searched a lot on this Forum.
Please help me with the below problem.

I want to divide two numbers and the result should be the next nearest whole number.

E.G. Dividing 10.8/5 ideally gives 2.16. But the result should be 3 i.e. rounded off to the next whole number.

Any help will be deeply appreciated.:slight_smile:

Humm, if you really want to round 10.8/5 to an integer the answer should be 2 not 3. What you are looking for is to round up i.e. ceil(10.8/5)

$ num=2.16
$ print $((floor(num)))
2
$ print $((ceil(num)))
3
$