0
Q:

math.ceil

var ceiling1 = Math.ceil(4.7); //5 
var ceiling2 = Math.ceil(-3.4); //-3
2
Math.ceil(1.2);
// 2
6
Math.ceil(x); //This equals the next whole number after x. X must be a double.

//Example use:
x = Math.ceil(x);
//Now x is equal to x rounded up.
2
Mathf.Ceil(10.0F)
0
Math.ceil(.95);    // 1
Math.ceil(4);      // 4
Math.ceil(7.004);  // 8
Math.ceil(-0.95);  // -0
Math.ceil(-4);     // -4
Math.ceil(-7.004); // -7
0
ceil ( float $value ) : float
Returns the next highest integer value by rounding up value if necessary.
0

Math.ceil(1.4)
 
0

New to Communities?

Join the community