Php program to print the number using the floor method

A Php program to print the number using the floor method. By using this method we can execute the program with floor function. Another built-in function in PHP interpreter is the floor() function. Any float number can be passed as an argument, and it will be rounded down to the next lowest integer. Because the range of float is larger than that of integer, this function always returns a float number.

<?php 
echo (floor(5.7)."<br/>");
echo (floor(3.333)."<br/>");
echo (floor(-1.8)."<br/>");
?>

 

Output:

5

3

-2