Round off
Syntax
floor($number)
Description
Rounds the floating point number number
to the next lower integer.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
number | Number | Floating point number to be rounded down | yes |
Return value
Type: Number
The next lower integer from number
.
Examples
Decimal
floor(3.141)
Output: 3
Integer
floor(3)
Output: 3
Whole numbers remain unchanged.