WMLScript floor() function

The floor() function returns the nearest integer that is 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