PHP Math Function : floor()

The floor() function returns a round of given number, down to the nearest integer. The syntax is :
 floor( number );
Example :
<?php

  echo floor(7.80) . "<br/>";
  echo floor(-20.90) . "<br/>";
  echo floor(3.40) . "<br/>";
  echo floor(56.10) . "<br/>";

?>
Output :

7
-21
3
56

Next Topic :