HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP Math Reference : Round numbers down to the nearest integer
The floor() function rounds a number DOWN to the nearest integer, if necessary, and returns the result.
Parameter | Description |
---|---|
number | Required. Specifies the number to round down |
Return Value: | The value rounded down to the nearest integer |
---|---|
Return Type: | Float |
PHP Version: | 4+ |
❮ PHP Math Reference