Math.ceil

JavaScript
var ceiling1 = Math.ceil(4.7); //5 
var ceiling2 = Math.ceil(-3.4); //-3Math.ceil(1.2);
// 2Math.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
//The Math.ceil() function always rounds a
//number up to the next largest integer.

//Note: Math.ceil(null) returns integer 0
//and does not give a NaN error.

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
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.Math.round(3.14159)  // 3
Math.round(3.5)      // 4
Math.floor(3.8)      // 3
Math.ceil(3.2)       // 4

Source

Also in JavaScript: