Php program to print the number using ceil

A Php program to print the number using ceil. In this program you can print the ceil or rounded number in php program. The ceil() function is a PHP built-in function for rounding numbers to the closest greater integer. Parameters: The ceil() method takes only one parameter, which indicates the number you want to round up to the next bigger integer.

<?php 
echo (ceil(2.3)."<br/>");
echo (ceil(-5.8)."<br/>");
?>

 

Output:

3

-5