WMLScript int() Function

The int() function returns the integer part of the x parameter value.

Syntax

n = Float.int(x)
Component Description
n The integer returned by this function.
x A number.

Example

var a = Float.int(5.32);

Result

a = 5