This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

floor()

Deprecated in 5.0.

Please use Math::Floor instead.

floor(input): float

Round down value.

Table 1. Parameters

input

Input value.

Return

Value round down to nearest integer.

>>> floor(2.3)
2.0
>>> floor(3.8)
3.0
>>> floor(-2.3)
-3.0
>>> floor(-3.8)
-4.0