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