WMLScript Float library

The Float function library includes a series of mathematical functions.

Functions of the WMLScript Float library

The Float function library is only valid on client machines that support floating-point numbers. If the client does not support floating-point numbers, all its functions return invalid.

Function Description
ceil(x) Return the closest integer not less than the specified number.
floor(x) Return the closest integer not greater than the specified number.
int(x) Return the integer part of the specified number.
maxFloat() Return the largest possible floating-point number.
minFloat() Return the smallest possible floating-point number.
pow(x,y) Return x to the power of y.
round(x) Round a number to the nearest integer.
sqrt(x) Return the square root of a number.