Difference between ceil and floor : Math Functions : Math PHP Source Code


PHP Source Code » Math » Math Functions »

 

Difference between ceil and floor




<?
$my_double = 4.7;
$my_int = ceil($my_double)
echo($my_int);


$my_double = -4.7;
$my_int = floor($my_double);
echo($my_int);

 
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Math
» Math Functions