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.

ceil()

Deprecated in 5.0.

Please use Math::Ceil instead.

ceil(input): float

Round up value.

Table 1. Parameters

input

Input value.

Return

Value round up to nearest integer.

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