|
Newsletters
|
|
|
|
|
WMLScript Reference
WMLScript Reference
WMLScript > Float > ceil()
ceil() - The ceil Function
Usage: ceil(value)
Description: Returns the smallest integer value that is not less 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.ceil(a); // b = 4
var c = Float.ceil(-2.8); // c = -2
Bookmark this page
|
|