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.

Math::Ceil

Math::Ceil(x): float

Round up value.

Table 1. Parameters

x

number

Input value

Return

Value rounded up to nearest integer (as floating point number).

println(Math::Ceil(2.3)); // Will print "3.0"
println(Math::Ceil(3.8)); // Will print "4.0"
println(Math::Ceil(-2.3)); // Will print "-2.0"
println(Math::Ceil(-3.8)); // Will print "-3.0"