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::Floor
- Math::Floor(x): float
-
Round down value.
x |
number |
Input value |
Return
Value rounded down to nearest integer (as floating point number).
println(Math::Floor(2.3)); // Will print "2.0"
println(Math::Floor(3.8)); // Will print "3.0"
println(Math::Floor(-2.3)); // Will print "-3.0"
println(Math::Floor(-3.8)); // Will print "-4.0"