|
Newsletters
|
|
|
|
|
WMLScript Reference
WMLScript Reference
WMLScript > Float > floor()
floor() - The floor Function
Usage: floor(value)
Description: Returns the greatest integer value that is not greater than the given value. If the value is already an integer, the result is the value itself.
Example:var a = 3.14;
var b = Float.floor(a); // b = 3;
var c = Float.floor(-2.8); // c = -3;
Bookmark this page
|
|