Easy Tutorial
❮ Func Mail Ezmlm_Hash Func Array Chunk ❯

PHP floor() Function

PHP Math Reference Manual

Example

Rounds down to the nearest integer:


Definition and Usage

The floor() function rounds a number down to the nearest integer.

Tip: To round up to the nearest integer, see the ceil() function.

Tip: To round a floating-point number, see the round() function.


Syntax

Parameter Description
number Required. Specifies the value to be rounded down.

Technical Details

Return Value: The nearest lower integer value.
Return Type: Float
--- ---
PHP Version: 4+
--- ---
❮ Func Mail Ezmlm_Hash Func Array Chunk ❯