PHP ceil() Function

The ceil() function is used to converts the value of a number rounded UPWARDS to the nearest integer.

Demo :



Type No :  
Decimal number is : 0

Example :

Example 1: Type No : 0.60
Example 2: Type No : 0.40
Example 3: Type No : 5
<?php
 $ceil_no = 0.60;
 $result = ceil($ceil_no);
 echo $result;
?>

In the above code is used to converts rounded UPWARDS to the nearest integer.In the ceil() functions have used one arguments that name is float number.

Free Download Script :

If you need ceil() function demo code download from following link.

Download




Content