WMLScript ceil() function
The ceil() function returns the nearest integer not less than the value of the x parameter.
Syntax
n = Float.ceil(x)
Components | Description |
---|---|
n | The integer returned by this function. |
x | A number. |
Example
var a = Float.ceil(5.32); var b = Float.ceil(5.55); var c = Float.ceil(-5.32);
Result
a = 6 b = 6 c = -5