MathLib.ceiling returns the smallest integer not less than a specified number.
eglx.lang
static function ceiling(value float in) returns(float);
After the following code runs, the value of result is 5.0, and the value of result2 is -4.0.
myVar FLOAT = 4.5; result FLOAT = mathLib.ceiling(myVar); myVar2 FLOAT = -4.5; result2 FLOAT = mathLib.ceiling(myVar2);
In the case of Java™, EGL uses methods in the Java StrictMath class that are equivalent to the EGL functions. This usage ensures that the runtime behavior is the same for every Java Virtual Machine.
| Target | Issue |
|---|---|
| Java | No issues. |
| JavaScript | No issues. |