WMLScript Float Library
- Previous Page WML Dialogs
- Next Page WML Lang
The Float function library includes a series of mathematical functions.
Functions of the WMLScript Float Library
The Float function library is only effective 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 nearest integer not less than the specified number. |
floor(x) | Return the nearest 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. |
- Previous Page WML Dialogs
- Next Page WML Lang