WMLScript int() Function
The int() function returns the integer part of the value of the x parameter.
Syntax
n = Float.int(x)
Components | Description |
---|---|
n | The integer returned by this function. |
x | A number. |
Example
var a = Float.int(5.32);
Result
a = 5