WMLScript round() Function

The round() function rounds a number to the nearest integer.

Syntax

n = Float.round(x)
Component Description
n The integer returned by this function.
x Number.

Example

var a = Float.round(3.5);
var b = Float.round(3.4);

Result

a = 4
b = 3